java.lang.Object | ||
↳ | java.util.EventObject | |
↳ | javax.net.ssl.HandshakeCompletedEvent |
This event indicates that an SSL handshake completed on a given SSL connection. All of the core information about that handshake's result is captured through an "SSLSession" object. As a convenience, this event class provides direct access to some important session attributes.
The source of this event is the SSLSocket on which handshaking just completed.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new HandshakeCompletedEvent.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the cipher suite in use by the session which was produced
by the handshake.
| |||||||||||
Returns the certificate(s) that were sent to the peer during
handshaking.
| |||||||||||
Returns the principal that was sent to the peer during handshaking.
| |||||||||||
Returns the identity of the peer which was identified as part
of defining the session.
| |||||||||||
Returns the identity of the peer which was established as part
of defining the session.
| |||||||||||
Returns the identity of the peer which was established as part of
defining the session.
| |||||||||||
Returns the session that triggered this event.
| |||||||||||
Returns the socket which is the source of this event.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs a new HandshakeCompletedEvent.
sock | the SSLSocket acting as the source of the event |
---|---|
s | the SSLSession this event is associated with |
Returns the cipher suite in use by the session which was produced by the handshake. (This is a convenience method for getting the ciphersuite from the SSLsession.)
Returns the certificate(s) that were sent to the peer during handshaking. Note: This method is useful only when using certificate-based cipher suites. When multiple certificates are available for use in a handshake, the implementation chooses what it considers the "best" certificate chain available, and transmits that to the other side. This method allows the caller to know which certificate chain was actually used.
Returns the principal that was sent to the peer during handshaking.
Returns the identity of the peer which was identified as part of defining the session. Note: This method can be used only when using certificate-based cipher suites; using it with non-certificate-based cipher suites, such as Kerberos, will throw an 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. |
---|
Returns the identity of the peer which was established as part of defining the session. Note: This method can be used only when using certificate-based cipher suites; using it with non-certificate-based cipher suites, such as Kerberos, will throw an SSLPeerUnverifiedException.
SSLPeerUnverifiedException | if the peer is not verified. |
---|
Returns the identity of the peer which was established as part of defining the session.
SSLPeerUnverifiedException | if the peer's identity has not been verified |
---|
Returns the session that triggered this event.
SSLSession
for this handshake
Returns the socket which is the source of this event. (This is a convenience function, to let applications write code without type casts.)