public class HandshakeCompletedEvent extends EventObject
source| Constructor and Description |
|---|
HandshakeCompletedEvent(SSLSocket sock,
SSLSession s)
Creates a new
HandshakeCompletedEvent with the specified SSL
socket and SSL session. |
| Modifier and Type | Method and Description |
|---|---|
String |
getCipherSuite()
Returns the name of the cipher suite negotiated during this handshake.
|
Certificate[] |
getLocalCertificates()
Returns the list of local certificates used during the handshake.
|
Principal |
getLocalPrincipal()
Returns the
Principal used to identify during the handshake. |
X509Certificate[] |
getPeerCertificateChain()
Returns the list of certificates identifying the peer.
|
Certificate[] |
getPeerCertificates()
Return the list of certificates identifying the peer during the
handshake.
|
Principal |
getPeerPrincipal()
Returns the
Principal identifying the peer. |
SSLSession |
getSession()
Returns the SSL session associated with this event.
|
SSLSocket |
getSocket()
Returns the SSL socket that produced this event.
|
getSource, toStringpublic HandshakeCompletedEvent(SSLSocket sock, SSLSession s)
HandshakeCompletedEvent with the specified SSL
socket and SSL session.sock - the SSL socket.s - the SSL session.public SSLSession getSession()
public String getCipherSuite()
public Certificate[] getLocalCertificates()
null
if no certificates were used during the handshake.public Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException
SSLPeerUnverifiedException - if the identity of the peer has not been verified.public X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException
Replaced by: getPeerCertificates()
SSLPeerUnverifiedException - if the identity of the peer has not been verified.public Principal getPeerPrincipal() throws SSLPeerUnverifiedException
Principal identifying the peer.Principal identifying the peer.SSLPeerUnverifiedException - if the identity of the peer has not been verified.public Principal getLocalPrincipal()
Principal used to identify during the handshake.Principal used to identify during the handshake.public SSLSocket getSocket()