javax.net.ssl
Class HandshakeCompletedEvent
java.lang.Object
|
+--java.util.EventObject
|
+--javax.net.ssl.HandshakeCompletedEvent
- Direct Known Subclasses:
- SSLeayHandshakeCompletedEvent
- public abstract class HandshakeCompletedEvent
- extends java.util.EventObject
- Version:
- $Revision: 1.3 $
- Author:
- Andrei Popovici
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Method Summary |
abstract java.lang.String |
getCipherSuite()
Returns the cipher suite in use by the session which was
produced by the handshake. |
abstract X509Certificate[] |
getPeerCertificateChain()
Returns the identity of the peer which was identified as part of
defining the session. |
abstract SSLSession |
getSession()
Returns the session which was produced by the handshake |
abstract 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 |
HandshakeCompletedEvent
public HandshakeCompletedEvent(SSLSocket socket,
SSLSession session)
- Constructs a new HandshakeCompletedEvent.
- Parameters:
session
- the session used in the handshakesocket
- the connection of the exception
getCipherSuite
public abstract java.lang.String getCipherSuite()
- Returns the cipher suite in use by the session which was
produced by the handshake.
getSession
public abstract SSLSession getSession()
- Returns the session which was produced by the handshake
getSocket
public abstract SSLSocket getSocket()
- Returns the socket which is the source of this event
getPeerCertificateChain
public abstract X509Certificate[] getPeerCertificateChain()
throws SSLPeerUnverifiedException
- Returns the identity of the peer which was identified as part of
defining the session.