javax.net.ssl
public class HandshakeCompletedEvent extends EventObject
| Constructor Summary | |
|---|---|
| HandshakeCompletedEvent(SSLSocket socket, SSLSession session)
Creates a new handshake completed event.
| |
| Method Summary | |
|---|---|
| String | getCipherSuite()
Returns the name of the cipher that was negotiated in this
connection.
|
| Certificate[] | getLocalCertificates()
Returns the local certificates being used in this connection.
|
| Principal | getLocalPrincipal()
Returns the local identity used in this connection, or
null if there is none.
|
| X509Certificate[] | getPeerCertificateChain() |
| Certificate[] | getPeerCertificates()
Returns the peer's certificates being used in this connection.
|
| Principal | getPeerPrincipal()
Returns the peer's identity, or null if there is
none.
|
| SSLSession | getSession()
Returns the SSL session object associated with this connection.
|
| SSLSocket | getSocket()
Returns the socket over which this connection is being
negotiated. |
Parameters: socket The socket (also the source) creating this event. session The associated session object.
Throws: NullPointerException If session is null.
Returns: The negotiated cipher name.
Returns: The local certificates.
null if there is none.
Returns: The local identity.
Since: 1.5
Returns: The peer's certificates.
Throws: SSLPeerUnverifiedException If the peer has not been verified.
null if there is
none.
Returns: The peer's identity.
Throws: SSLPeerUnverifiedException If the remote peer's identity could not be verified.
Since: 1.5
Returns: The session object.
Returns: The socket.