public class JSSESupport extends java.lang.Object implements SSLSupport, SSLSessionManager
CERTIFICATE_KEY, CIPHER_SUITE_KEY, KEY_SIZE_KEY, PROTOCOL_VERSION_KEY, REQUESTED_CIPHERS_KEY, REQUESTED_PROTOCOL_VERSIONS_KEY, SESSION_ID_KEY, SESSION_MGR| Constructor and Description |
|---|
JSSESupport(javax.net.ssl.SSLSession session)
Deprecated.
This will be removed in Tomcat 10.1.x onwards
Use
JSSESupport(SSLSession, Map) |
JSSESupport(javax.net.ssl.SSLSession session,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> additionalAttributes) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCipherSuite()
The cipher suite being used on this connection.
|
java.lang.Integer |
getKeySize()
Get the keysize.
|
java.security.cert.X509Certificate[] |
getLocalCertificateChain()
The server certificate chain (if any) that were sent to the peer.
|
java.security.cert.X509Certificate[] |
getPeerCertificateChain()
The client certificate chain (if any).
|
java.lang.String |
getProtocol() |
java.lang.String |
getRequestedCiphers() |
java.lang.String |
getRequestedProtocols() |
java.lang.String |
getSessionId()
The current session Id.
|
void |
invalidateSession()
Invalidate the session this support object is associated with.
|
void |
setSession(javax.net.ssl.SSLSession session) |
@Deprecated public JSSESupport(javax.net.ssl.SSLSession session)
JSSESupport(SSLSession, Map)session - SSLSession from which information is to be extractedpublic JSSESupport(javax.net.ssl.SSLSession session,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> additionalAttributes)
public java.lang.String getCipherSuite()
throws java.io.IOException
SSLSupportgetCipherSuite in interface SSLSupportjava.io.IOException - If an error occurs trying to obtain the cipher suitepublic java.security.cert.X509Certificate[] getLocalCertificateChain()
SSLSupportgetLocalCertificateChain in interface SSLSupportpublic java.security.cert.X509Certificate[] getPeerCertificateChain()
throws java.io.IOException
SSLSupportgetPeerCertificateChain in interface SSLSupportjava.io.IOException - If an error occurs trying to obtain the certificate
chainpublic java.lang.Integer getKeySize()
throws java.io.IOException
This returns the effective bits for the current cipher suite.
getKeySize in interface SSLSupportjava.io.IOException - If an error occurs trying to obtain the key sizepublic java.lang.String getSessionId()
throws java.io.IOException
SSLSupportgetSessionId in interface SSLSupportjava.io.IOException - If an error occurs trying to obtain the session IDpublic void setSession(javax.net.ssl.SSLSession session)
public void invalidateSession()
invalidateSession in interface SSLSessionManagerpublic java.lang.String getProtocol()
throws java.io.IOException
getProtocol in interface SSLSupportjava.io.IOException - If an error occurs trying to obtain the protocol
information from the socketpublic java.lang.String getRequestedProtocols()
throws java.io.IOException
getRequestedProtocols in interface SSLSupportjava.io.IOException - If an error occurs trying to obtain the client
requested protocol information from the socketpublic java.lang.String getRequestedCiphers()
throws java.io.IOException
getRequestedCiphers in interface SSLSupportjava.io.IOException - If an error occurs trying to obtain the client
request cipher information from the socketCopyright © 2000-2024 Apache Software Foundation.
Apache Tomcat, Tomcat, Apache, the Apache Tomcat logo and the Apache logo are either registered trademarks or trademarks of the Apache Software Foundation.