public class HandshakeCompletedEvent extends EventObject
The source of this event is the SSLSocket on which handshaking just completed.
SSLSocket,
HandshakeCompletedListener,
SSLSession,
Serialized Form
source| Constructor and Description |
|---|
HandshakeCompletedEvent(SSLSocket
Constructs a new HandshakeCompletedEvent.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCipherSuite()
Returns the cipher suite in use by the session which was produced by the handshake.
|
Certificate |
getLocalCertificates()
Returns the certificate(s) that were sent to the peer during handshaking.
|
Principal |
getLocalPrincipal()
Returns the principal that was sent to the peer during handshaking.
|
X509Certificate |
getPeerCertificateChain()
Returns the identity of the peer which was identified as part of defining the session.
|
Certificate |
getPeerCertificates()
Returns the identity of the peer which was established as part of defining the session.
|
Principal |
getPeerPrincipal()
Returns the identity of the peer which was established as part of defining the session.
|
SSLSession |
getSession()
Returns the session that triggered this event.
|
SSLSocket |
getSocket()
Returns the socket which is the source of this event.
|
getSource, toStringpublic HandshakeCompletedEvent(SSLSocketsock, SSLSession s)
sock - the SSLSocket acting as the source of the event
s - the SSLSession this event is associated with
public SSLSessiongetSession()
SSLSession for this handshake
public StringgetCipherSuite()
public Certificate[] getLocalCertificates()
getLocalPrincipal()
public Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException
SSLPeerUnverifiedException - if the peer is not verified.
getPeerPrincipal()
public X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException
Note: this method exists for compatibility with previous releases. New applications should use getPeerCertificates() instead.
X509Certificate format).
SSLPeerUnverifiedException - if the peer is not verified.
getPeerPrincipal()
public PrincipalgetPeerPrincipal() throws SSLPeerUnverifiedException
SSLPeerUnverifiedException - if the peer's identity has not been verified
getPeerCertificates(),
getLocalPrincipal()
public PrincipalgetLocalPrincipal()
getLocalCertificates(),
getPeerPrincipal()
public SSLSocketgetSocket()