public class JSSEUtil extends SSLUtilBase
SSLUtil.ProtocolInfo
certificate
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, getEnabledProtocols
public JSSEUtil(SSLHostConfigCertificate certificate)
protected Log getLog()
getLog
in class SSLUtilBase
protected Set<String> getImplementedProtocols()
getImplementedProtocols
in class SSLUtilBase
protected Set<String> getImplementedCiphers()
getImplementedCiphers
in class SSLUtilBase
public SSLContext createSSLContext(List<String> negotiableProtocols) throws NoSuchAlgorithmException
NoSuchAlgorithmException
public KeyManager[] getKeyManagers() throws Exception
Exception
public TrustManager[] getTrustManagers() throws Exception
Exception
public 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.