public class SSLSessionEvent extends EventObject
SSLSessionEvent defines an event state object for a
SSL Session.source| Constructor and Description |
|---|
SSLSessionEvent(Object source,
String remoteIP,
int remotePort,
X509Certificate[] peerCerts,
int localPort,
String localIP,
IOException ex)
Creates a new
SSLSessionEvent instance passing in the
source of the event and relevant connection data. |
| Modifier and Type | Method and Description |
|---|---|
IOException |
getCause()
Returns the exception that caused this event to be created
|
String |
getLocalIP()
getLocalIP is an accessor for the local IP address. |
int |
getLocalPort()
getLocalPort is an accessor for the local port. |
X509Certificate[] |
getPeerCertificateChain()
Returns the
X509Certificate chain for the remote object. |
String |
getRemoteDN()
Deprecated.
use getPeerCertificateChain
|
String |
getRemoteIP()
getRemoteIP is an accessor for the remote IP. |
int |
getRemotePort()
getRemotePort is an accessor for the remote port. |
String |
toString()
Returns a String representation of this EventObject.
|
getSourcepublic SSLSessionEvent(Object source, String remoteIP, int remotePort, X509Certificate[] peerCerts, int localPort, String localIP, 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 String getRemoteIP()
getRemoteIP is an accessor for the remote IP.String valuepublic int getRemotePort()
getRemotePort is an accessor for the remote port.int valuepublic String getRemoteDN()
getRemoteDN is an accessor for the remote distinguished nameString valuepublic int getLocalPort()
getLocalPort is an accessor for the local port.int valuepublic String getLocalIP()
getLocalIP is an accessor for the local IP address.String valuepublic 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 String toString()
toString in class EventObjectpublic IOException getCause()
IOException this can be nullCopyright © 2017 JacORB. All rights reserved.