public class SSLSessionEvent
extends java.util.EventObject
SSLSessionEvent
defines an event state object for a
SSL Session.Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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.
|
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)
SSLSessionEvent
instance passing in the
source of the event and relevant connection data.source
- an Object
valueremoteIP
- 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
[] valuelocalPort
- an int
valuelocalIP
- a String
valuepublic java.lang.String getRemoteIP()
getRemoteIP
is an accessor for the remote IP.String
valuepublic int getRemotePort()
getRemotePort
is an accessor for the remote port.int
valuepublic java.lang.String getRemoteDN()
getRemoteDN
is an accessor for the remote distinguished nameString
valuepublic int getLocalPort()
getLocalPort
is an accessor for the local port.int
valuepublic java.lang.String getLocalIP()
getLocalIP
is an accessor for the local IP address.String
valuepublic javax.security.cert.X509Certificate[] getPeerCertificateChain()
X509Certificate
chain for the remote object.
This may return null if the certificates were not available when
this event was createdX509Certificate
objects.public java.lang.String toString()
toString
in class java.util.EventObject
public java.io.IOException getCause()
IOException
this can be null