public abstract class SSLUtilBase extends java.lang.Object implements SSLUtil
SSLUtil implementations.SSLUtil.ProtocolInfo| Modifier and Type | Field and Description |
|---|---|
protected SSLHostConfigCertificate |
certificate |
protected SSLHostConfig |
sslHostConfig |
| Modifier | Constructor and Description |
|---|---|
protected |
SSLUtilBase(SSLHostConfigCertificate certificate) |
protected |
SSLUtilBase(SSLHostConfigCertificate certificate,
boolean warnTls13) |
| Modifier and Type | Method and Description |
|---|---|
void |
configureSessionContext(javax.net.ssl.SSLSessionContext sslSessionContext) |
SSLContext |
createSSLContext(java.util.List<java.lang.String> negotiableProtocols) |
protected abstract SSLContext |
createSSLContextInternal(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.
|
java.lang.String[] |
getEnabledCiphers()
The set of enabled ciphers is the intersection of the implemented ciphers
and the configured ciphers.
|
java.lang.String[] |
getEnabledProtocols()
The set of enabled protocols is the intersection of the implemented
protocols and the configured protocols.
|
protected abstract java.util.Set<java.lang.String> |
getImplementedCiphers() |
protected abstract java.util.Set<java.lang.String> |
getImplementedProtocols() |
javax.net.ssl.KeyManager[] |
getKeyManagers() |
protected abstract 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() |
protected abstract boolean |
isTls13RenegAuthAvailable() |
protected final SSLHostConfig sslHostConfig
protected final SSLHostConfigCertificate certificate
protected SSLUtilBase(SSLHostConfigCertificate certificate)
protected SSLUtilBase(SSLHostConfigCertificate certificate, boolean warnTls13)
public final SSLContext createSSLContext(java.util.List<java.lang.String> negotiableProtocols) throws java.lang.Exception
createSSLContext in interface SSLUtiljava.lang.Exceptionpublic void configureSessionContext(javax.net.ssl.SSLSessionContext sslSessionContext)
configureSessionContext in interface SSLUtilpublic javax.net.ssl.KeyManager[] getKeyManagers()
throws java.lang.Exception
getKeyManagers in interface SSLUtiljava.lang.Exceptionpublic java.lang.String[] getEnabledProtocols()
SSLUtilgetEnabledProtocols in interface SSLUtilpublic java.lang.String[] getEnabledCiphers()
SSLUtil
The ciphers used during the TLS handshake may be further restricted by
the SSLUtil.getEnabledProtocols() and the certificates.
getEnabledCiphers in interface SSLUtilpublic javax.net.ssl.TrustManager[] getTrustManagers()
throws java.lang.Exception
getTrustManagers in interface SSLUtiljava.lang.Exceptionprotected 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 certificateprotected abstract java.util.Set<java.lang.String> getImplementedProtocols()
protected abstract java.util.Set<java.lang.String> getImplementedCiphers()
protected abstract Log getLog()
protected abstract boolean isTls13RenegAuthAvailable()
protected abstract SSLContext createSSLContextInternal(java.util.List<java.lang.String> negotiableProtocols) throws java.lang.Exception
java.lang.ExceptionCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.