|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
javax.net.ssl.HandshakeCompletedEvent
public class HandshakeCompletedEvent
An event raised by a SSLSocket and passed to the HandshakeCompletedListener.handshakeCompleted(HandshakeCompletedEvent)
method of all registered listeners when a SSL handshake in a SSL
protocol is completed.
| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| 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. |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HandshakeCompletedEvent(SSLSocket socket,
SSLSession session)
socket - The socket (also the source) creating this event.session - The associated session object.
NullPointerException - If session is null.| Method Detail |
|---|
public String getCipherSuite()
public Certificate[] getLocalCertificates()
public Principal getLocalPrincipal()
null if there is none.
public Certificate[] getPeerCertificates()
throws SSLPeerUnverifiedException
SSLPeerUnverifiedException - If the peer has not been
verified.
public X509Certificate[] getPeerCertificateChain()
throws SSLPeerUnverifiedException
SSLPeerUnverifiedException
public Principal getPeerPrincipal()
throws SSLPeerUnverifiedException
null if there is
none.
SSLPeerUnverifiedException - If the remote peer's identity
could not be verified.public SSLSession getSession()
public SSLSocket getSocket()
EventObject.getSource() method.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||