org.jacorb.orb.listener
Class SSLSessionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.jacorb.orb.listener.SSLSessionEvent
All Implemented Interfaces:
java.io.Serializable

public class SSLSessionEvent
extends java.util.EventObject

SSLSessionEvent defines an event state object for a SSL Session.

Version:
$Id: SSLSessionEvent.java.ssl,v 1.1 2006/06/26 08:08:24 alphonse.bendt Exp $
Author:
Nick Cross
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SSLSessionEvent(java.lang.Object source, java.lang.String remoteIP, int remotePort, javax.security.cert.X509Certificate[] peerCerts, int localPort, java.lang.String localIP, java.io.IOException ex)
          Creates a new SSLSessionEvent instance passing in the source of the event and relevant connection data.
 
Method Summary
 java.io.IOException getCause()
          Returns the exception that caused this event to be created
 java.lang.String getLocalIP()
          getLocalIP is an accessor for the local IP address.
 int getLocalPort()
          getLocalPort is an accessor for the local port.
 javax.security.cert.X509Certificate[] getPeerCertificateChain()
          Returns the X509Certificate chain for the remote object.
 java.lang.String getRemoteDN()
          Deprecated. use getPeerCertificateChain
 java.lang.String getRemoteIP()
          getRemoteIP is an accessor for the remote IP.
 int getRemotePort()
          getRemotePort is an accessor for the remote port.
 java.lang.String toString()
          Returns a String representation of this EventObject.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SSLSessionEvent

public SSLSessionEvent(java.lang.Object source,
                       java.lang.String remoteIP,
                       int remotePort,
                       javax.security.cert.X509Certificate[] peerCerts,
                       int localPort,
                       java.lang.String localIP,
                       java.io.IOException ex)
Creates a new SSLSessionEvent instance passing in the source of the event and relevant connection data.

Parameters:
source - an Object value
remoteIP - a String value, maybe blank if a Socket has just been created and not connected.
remotePort - an int value, maybe -1 if a Socket has just been created and not connected.
peerCerts - a X509Certificate[] value
localPort - an int value
localIP - a String value
Method Detail

getRemoteIP

public java.lang.String getRemoteIP()
getRemoteIP is an accessor for the remote IP.

Returns:
a String value

getRemotePort

public int getRemotePort()
getRemotePort is an accessor for the remote port.

Returns:
a int value

getRemoteDN

public java.lang.String getRemoteDN()
Deprecated. use getPeerCertificateChain

getRemoteDN is an accessor for the remote distinguished name

Returns:
a String value

getLocalPort

public int getLocalPort()
getLocalPort is an accessor for the local port.

Returns:
a int value

getLocalIP

public java.lang.String getLocalIP()
getLocalIP is an accessor for the local IP address.

Returns:
a String value

getPeerCertificateChain

public javax.security.cert.X509Certificate[] getPeerCertificateChain()
Returns the X509Certificate chain for the remote object. This may return null if the certificates were not available when this event was created

Returns:
An array of X509Certificate objects.

toString

public java.lang.String toString()
Returns a String representation of this EventObject.

Overrides:
toString in class java.util.EventObject
Returns:
A String representation of this EventObject.

getCause

public java.io.IOException getCause()
Returns the exception that caused this event to be created

Returns:
IOException this can be null