public class JSSEUtil extends SSLUtilBase
SSLUtil.ProtocolInfocertificate| Constructor and Description |
|---|
JSSEUtil(SSLHostConfigCertificate certificate) |
| Modifier and Type | Method and Description |
|---|---|
void |
configureSessionContext(SSLSessionContext sslSessionContext) |
SSLContext |
createSSLContext(List<String> negotiableProtocols) |
protected Collection<? extends CRL> |
getCRLs(String crlf)
Load the collection of CRLs.
|
protected Set<String> |
getImplementedCiphers() |
protected Set<String> |
getImplementedProtocols() |
KeyManager[] |
getKeyManagers() |
protected Log |
getLog() |
protected CertPathParameters |
getParameters(String crlf,
KeyStore trustStore,
boolean revocationEnabled)
Return the initialization parameters for the TrustManager.
|
TrustManager[] |
getTrustManagers() |
getEnabledCiphers, getEnabledProtocolspublic JSSEUtil(SSLHostConfigCertificate certificate)
protected Log getLog()
getLog in class SSLUtilBaseprotected Set<String> getImplementedProtocols()
getImplementedProtocols in class SSLUtilBaseprotected Set<String> getImplementedCiphers()
getImplementedCiphers in class SSLUtilBasepublic SSLContext createSSLContext(List<String> negotiableProtocols) throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic KeyManager[] getKeyManagers() throws Exception
Exceptionpublic TrustManager[] getTrustManagers() throws Exception
Exceptionpublic void configureSessionContext(SSLSessionContext sslSessionContext)
protected CertPathParameters getParameters(String crlf, KeyStore trustStore, boolean revocationEnabled) throws Exception
PKIX is supported.crlf - The path to the CRL file.trustStore - The configured TrustStore.revocationEnabled - Should the JSSE provider perform revocation
checks? Ignored if crlf is non-null.
Configuration of revocation checks are expected
to be via proprietary JSSE provider methods.Exception - An error occurredprotected Collection<? extends CRL> getCRLs(String crlf) throws IOException, CRLException, CertificateException
crlf - The path to the CRL file.IOException - Error reading CRL fileCRLException - CRL errorCertificateException - Error processing certificateCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.