public class FileTransferSslHandshakeEvent extends FileTransferEvent
Constructor and Description |
---|
FileTransferSslHandshakeEvent(FileTransfer source,
javax.net.ssl.HandshakeCompletedEvent baseEvent)
Creates a new event instance.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(FileTransferListener listener)
Accepts event via FileTransferListener.
|
java.lang.String |
getCipherSuite()
Returns the cipher suite in use by the session which was produced by the handshake.
|
java.security.cert.Certificate[] |
getLocalCertificates()
Returns the certificate(s) that were sent to the peer during handshaking.
|
java.security.Principal |
getLocalPrincipal()
Returns the principal that was sent to the peer during handshaking.
|
javax.security.cert.X509Certificate[] |
getPeerCertificateChain()
Returns the identity of the peer which was identified as part of defining the session.
|
java.security.cert.Certificate[] |
getPeerCertificates()
Returns the identity of the peer which was established as part of defining the session.
|
java.security.Principal |
getPeerPrincipal()
Returns the identity of the peer which was established as part of defining the session.
|
javax.net.ssl.SSLSession |
getSession()
Returns the session that triggered this event.
|
java.lang.String |
toString() |
public FileTransferSslHandshakeEvent(FileTransfer source, javax.net.ssl.HandshakeCompletedEvent baseEvent)
source
- an event sourcebaseEvent
- a base eventpublic javax.net.ssl.SSLSession getSession()
public java.lang.String getCipherSuite()
public java.security.cert.Certificate[] getLocalCertificates()
public java.security.cert.Certificate[] getPeerCertificates()
public javax.security.cert.X509Certificate[] getPeerCertificateChain()
public java.security.Principal getPeerPrincipal()
public java.security.Principal getLocalPrincipal()
public void accept(FileTransferListener listener)
accept
in class FileTransferEvent
listener
- the listener which receives eventpublic java.lang.String toString()
toString
in class java.util.EventObject
Copyright © JSCAPE LLC. 1999-2023. All Rights Reserved