COM.claymoresystems.sslg
Interface SSLSocketXInt
- SSLSocket
public interface SSLSocketXInt
Extended socket functions that only apply to SSL Sockets
abstract Vector | getCertificateChain() - get the certificate chain presented by the peer.
|
abstract int | getCipherSuite() - get the cipherSuite that was negotiated on this socket
|
abstract SSLPolicyInt | getPolicy() - Get the policy associated with this socket
|
abstract byte[] | getSessionID() - Get the SessionID associated with this session
|
int | getVersion() - Get the version of SSL negotiated.
|
abstract void | renegotiate(SSLPolicyInt policy) - Renegotiate this connection using the specified policy.
|
abstract void | sendClose() - Send our half of the SSL close_notify handshake
|
abstract void | waitForClose(boolean enforceFinished) - Wait to receive a close_notify from the other side.
|
CLIENT
public static final int CLIENT
SERVER
public static final int SERVER
getCertificateChain
public abstract Vector getCertificateChain()
throws IOException
get the certificate chain presented by the peer. This is relevant
for clients and servers if Client Authentication is being used.
- the certificate chain as a Vector of Certificates, null if unavailable
getCipherSuite
public abstract int getCipherSuite()
throws IOException
get the cipherSuite that was negotiated on this socket
- the cipherSuite as one of the integers defined in SSLPolicyInt
getPolicy
public abstract SSLPolicyInt getPolicy()
Get the policy associated with this socket
getSessionID
public abstract byte[] getSessionID()
throws IOException
Get the SessionID associated with this session
getVersion
public int getVersion()
throws IOException
Get the version of SSL negotiated.
- 768 (0x300) for SSLv3 or 769 (0x301) for TLSv1
renegotiate
public abstract void renegotiate(SSLPolicyInt policy)
throws IOException
Renegotiate this connection using the specified policy.
This may be used (for instance) to renegotiate using client
authentication. If renegotiation is successful, this policy
becomes the current policy for this socket
sendClose
public abstract void sendClose()
throws java.io.IOException
Send our half of the SSL close_notify handshake
waitForClose
public abstract void waitForClose(boolean enforceFinished)
throws java.io.IOException
Wait to receive a close_notify from the other side.
enforceFinished
- insist that no more data be present on the connection before the close_notify is received. This ensures that the application has read all the data that the peer sent
Copyright (c) 1999-2001 Claymore Systems, Inc., All Rights Reserved.