public class JSSESupport extends 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(SSLSession session)
Deprecated.
This will be removed in Tomcat 10.1.x onwards
Use
JSSESupport(SSLSession, Map) |
JSSESupport(SSLSession session,
Map<String,List<String>> additionalAttributes) |
Modifier and Type | Method and Description |
---|---|
String |
getCipherSuite()
The cipher suite being used on this connection.
|
Integer |
getKeySize()
Get the keysize.
|
X509Certificate[] |
getPeerCertificateChain()
The client certificate chain (if any).
|
String |
getProtocol() |
String |
getRequestedCiphers() |
String |
getRequestedProtocols() |
String |
getSessionId()
The current session Id.
|
void |
invalidateSession()
Invalidate the session this support object is associated with.
|
void |
setSession(SSLSession session) |
@Deprecated public JSSESupport(SSLSession session)
JSSESupport(SSLSession, Map)
session
- SSLSession from which information is to be extractedpublic JSSESupport(SSLSession session, Map<String,List<String>> additionalAttributes)
public String getCipherSuite() throws IOException
SSLSupport
getCipherSuite
in interface SSLSupport
IOException
- If an error occurs trying to obtain the cipher suitepublic X509Certificate[] getPeerCertificateChain() throws IOException
SSLSupport
getPeerCertificateChain
in interface SSLSupport
IOException
- 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 SSLSupport
IOException
- If an error occurs trying to obtain the key sizepublic String getSessionId() throws IOException
SSLSupport
getSessionId
in interface SSLSupport
IOException
- If an error occurs trying to obtain the session IDpublic void setSession(SSLSession session)
public void invalidateSession()
invalidateSession
in interface SSLSessionManager
public String getProtocol() throws IOException
getProtocol
in interface SSLSupport
IOException
- If an error occurs trying to obtain the protocol
information from the socketpublic String getRequestedProtocols() throws IOException
getRequestedProtocols
in interface SSLSupport
IOException
- If an error occurs trying to obtain the client
requested protocol information from the socketpublic String getRequestedCiphers() throws IOException
getRequestedCiphers
in interface SSLSupport
IOException
- If an error occurs trying to obtain the client
request cipher information from the socketCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.