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