COM.claymoresystems.sslg
public interface SSLSocketXInt
Field Summary | |
---|---|
static int | CLIENT |
static int | SERVER |
Method Summary | |
---|---|
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. |
Returns: the certificate chain as a Vector of Certificates, null if unavailable
Returns: the cipherSuite as one of the integers defined in SSLPolicyInt
Returns: the policy
Returns: 768 (0x300) for SSLv3 or 769 (0x301) for TLSv1
Parameters: the policy specified
Throws: IOException if something goes wrong in renegotiation
Throws: IOException if the close_notify alert can't be sent
Parameters: 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
Throws: IOException if the close_notify couldn't be read or if enforceFinished is true and more data was present.