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
 
Constructor Summary
SSLeayHandshakeCompletedEvent(SSLSocket socket, SSLSession session)
          Constructs a new HandshakeCompletedEvent.
 
Method Summary
 java.lang.String getCipherSuite()
          Returns the cipher suite in use by the session which was produced by the handshake.
 X509Certificate[] getPeerCertificateChain()
          Returns the identity of the peer which was identified as part of defining the session.
 SSLSession getSession()
          Returns the session which was produced by the handshake
 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

SSLeayHandshakeCompletedEvent

public SSLeayHandshakeCompletedEvent(SSLSocket socket,
                                     SSLSession session)
Constructs a new HandshakeCompletedEvent.
Parameters:
session - the session used in the handshake
socket - the connection of the exception
Method Detail

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