public class JSSESupport extends Object implements SSLSupport, SSLSessionManager
CERTIFICATE_KEY, CIPHER_SUITE_KEY, KEY_SIZE_KEY, PROTOCOL_VERSION_KEY, SESSION_ID_KEY, SESSION_MGR| Constructor and Description |
|---|
JSSESupport(SSLSession session) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCipherSuite()
The cipher suite being used on this connection.
|
Integer |
getKeySize()
Get the keysize.
|
X509Certificate[] |
getLocalCertificateChain()
The server certificate chain (if any) that were sent to the peer.
|
X509Certificate[] |
getPeerCertificateChain()
The client certificate chain (if any).
|
String |
getProtocol() |
String |
getSessionId()
The current session Id.
|
void |
invalidateSession()
Invalidate the session this support object is associated with.
|
void |
setSession(SSLSession session) |
public JSSESupport(SSLSession session)
public String getCipherSuite() throws IOException
SSLSupportgetCipherSuite in interface SSLSupportIOException - If an error occurs trying to obtain the cipher suitepublic X509Certificate[] getLocalCertificateChain()
SSLSupportgetLocalCertificateChain in interface SSLSupportpublic X509Certificate[] getPeerCertificateChain() throws IOException
SSLSupportgetPeerCertificateChain in interface SSLSupportIOException - If an error occurs trying to obtain the certificate
chainpublic Integer getKeySize() throws IOException
This returns the effective bits for the current cipher suite.
getKeySize in interface SSLSupportIOException - If an error occurs trying to obtain the key sizepublic String getSessionId() throws IOException
SSLSupportgetSessionId in interface SSLSupportIOException - If an error occurs trying to obtain the session IDpublic void setSession(SSLSession session)
public void invalidateSession()
invalidateSession in interface SSLSessionManagerpublic String getProtocol() throws IOException
getProtocol in interface SSLSupportIOException - If an error occurs trying to obtain the protocol
information from the socketCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.