|
JavaTM 2 Platform Std. Ed. v1.4.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
SSLSocket
,
HandshakeCompletedListener
,
SSLSession
,
Serialized FormField Summary |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
HandshakeCompletedEvent(SSLSocket sock,
SSLSession s)
Constructs a new HandshakeCompletedEvent. |
Method Summary | |
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. |
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. |
SSLSession |
getSession()
Returns the session that triggered this event. |
SSLSocket |
getSocket()
Returns the socket which is the source of this event. |
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 sock, SSLSession s)
sock
- the SSLSocket acting as the source of the events
- the SSLSession this event is associated withMethod Detail |
public SSLSession getSession()
SSLSession
for this handshakepublic String getCipherSuite()
public Certificate[] getLocalCertificates()
public Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException
SSLPeerUnverifiedException
- if the peer is not verified.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.public SSLSocket getSocket()
|
JavaTM 2 Platform Std. Ed. v1.4.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.