public class JSSEUtil extends SSLUtilBase
SSLUtil.ProtocolInfo
certificate
Constructor and Description |
---|
JSSEUtil(SSLHostConfigCertificate certificate) |
Modifier and Type | Method and Description |
---|---|
void |
configureSessionContext(javax.net.ssl.SSLSessionContext sslSessionContext) |
SSLContext |
createSSLContext(java.util.List<java.lang.String> negotiableProtocols) |
protected java.util.Collection<? extends java.security.cert.CRL> |
getCRLs(java.lang.String crlf)
Load the collection of CRLs.
|
protected java.util.Set<java.lang.String> |
getImplementedCiphers() |
protected java.util.Set<java.lang.String> |
getImplementedProtocols() |
javax.net.ssl.KeyManager[] |
getKeyManagers() |
protected Log |
getLog() |
protected java.security.cert.CertPathParameters |
getParameters(java.lang.String crlf,
java.security.KeyStore trustStore,
boolean revocationEnabled)
Return the initialization parameters for the TrustManager.
|
javax.net.ssl.TrustManager[] |
getTrustManagers() |
getEnabledCiphers, getEnabledProtocols
public JSSEUtil(SSLHostConfigCertificate certificate)
protected Log getLog()
getLog
in class SSLUtilBase
protected java.util.Set<java.lang.String> getImplementedProtocols()
getImplementedProtocols
in class SSLUtilBase
protected java.util.Set<java.lang.String> getImplementedCiphers()
getImplementedCiphers
in class SSLUtilBase
public SSLContext createSSLContext(java.util.List<java.lang.String> negotiableProtocols) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public javax.net.ssl.KeyManager[] getKeyManagers() throws java.lang.Exception
java.lang.Exception
public javax.net.ssl.TrustManager[] getTrustManagers() throws java.lang.Exception
java.lang.Exception
public void configureSessionContext(javax.net.ssl.SSLSessionContext sslSessionContext)
protected java.security.cert.CertPathParameters getParameters(java.lang.String crlf, java.security.KeyStore trustStore, boolean revocationEnabled) throws java.lang.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.java.lang.Exception
- An error occurredprotected java.util.Collection<? extends java.security.cert.CRL> getCRLs(java.lang.String crlf) throws java.io.IOException, java.security.cert.CRLException, java.security.cert.CertificateException
crlf
- The path to the CRL file.java.io.IOException
- Error reading CRL filejava.security.cert.CRLException
- CRL errorjava.security.cert.CertificateException
- Error processing certificateCopyright © 2000-1970 Apache Software Foundation. All Rights Reserved.