SSLSupport
public class AprSSLSupport extends java.lang.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 | Description |
---|---|
AprSSLSupport(AprEndpoint.AprSocketWrapper socketWrapper,
java.lang.String clientCertProvider) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getCipherSuite() |
The cipher suite being used on this connection.
|
java.lang.Integer |
getKeySize() |
Get the keysize.
|
java.security.cert.X509Certificate[] |
getPeerCertificateChain() |
The client certificate chain (if any).
|
java.lang.String |
getProtocol() |
|
java.lang.String |
getSessionId() |
The current session Id.
|
public AprSSLSupport(AprEndpoint.AprSocketWrapper socketWrapper, java.lang.String clientCertProvider)
public java.lang.String getCipherSuite() throws java.io.IOException
SSLSupport
getCipherSuite
in interface SSLSupport
java.io.IOException
- If an error occurs trying to obtain the cipher suitepublic java.security.cert.X509Certificate[] getPeerCertificateChain() throws java.io.IOException
SSLSupport
getPeerCertificateChain
in interface SSLSupport
java.io.IOException
- If an error occurs trying to obtain the certificate
chainpublic java.lang.Integer getKeySize() throws java.io.IOException
SSLSupport
getKeySize
in interface SSLSupport
java.io.IOException
- If an error occurs trying to obtain the key sizepublic java.lang.String getSessionId() throws java.io.IOException
SSLSupport
getSessionId
in interface SSLSupport
java.io.IOException
- If an error occurs trying to obtain the session IDpublic java.lang.String getProtocol() throws java.io.IOException
getProtocol
in interface SSLSupport
java.io.IOException
- If an error occurs trying to obtain the protocol
information from the socketCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.