public class AprSSLSupport extends Object implements SSLSupport
TODO: Add a mechanism (or figure out how to use what we already have) to invalidate the session.
CERTIFICATE_KEY, CIPHER_SUITE_KEY, KEY_SIZE_KEY, PROTOCOL_VERSION_KEY, SESSION_ID_KEY, SESSION_MGR
Constructor and Description |
---|
AprSSLSupport(AprEndpoint.AprSocketWrapper socketWrapper,
String clientCertProvider) |
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 |
getSessionId()
The current session Id.
|
public AprSSLSupport(AprEndpoint.AprSocketWrapper socketWrapper, String clientCertProvider)
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
SSLSupport
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 String getProtocol() throws IOException
getProtocol
in interface SSLSupport
IOException
- If an error occurs trying to obtain the protocol
information from the socketCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.