Package org.apache.tomcat.util.net
Class SSLUtilBase
- java.lang.Object
-
- org.apache.tomcat.util.net.SSLUtilBase
-
- All Implemented Interfaces:
SSLUtil
- Direct Known Subclasses:
JSSEUtil
,OpenSSLUtil
public abstract class SSLUtilBase extends java.lang.Object implements SSLUtil
Common base class forSSLUtil
implementations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.tomcat.util.net.SSLUtil
SSLUtil.ProtocolInfo
-
-
Field Summary
Fields Modifier and Type Field Description protected SSLHostConfigCertificate
certificate
-
Constructor Summary
Constructors Modifier Constructor Description protected
SSLUtilBase(SSLHostConfigCertificate certificate)
protected
SSLUtilBase(SSLHostConfigCertificate certificate, boolean warnTls13)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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()
protected abstract Log
getLog()
protected abstract boolean
isTls13Available()
protected abstract boolean
isTls13RenegAuthAvailable()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.tomcat.util.net.SSLUtil
configureSessionContext, createSSLContext, getKeyManagers, getTrustManagers
-
-
-
-
Field Detail
-
certificate
protected final SSLHostConfigCertificate certificate
-
-
Constructor Detail
-
SSLUtilBase
protected SSLUtilBase(SSLHostConfigCertificate certificate)
-
SSLUtilBase
protected SSLUtilBase(SSLHostConfigCertificate certificate, boolean warnTls13)
-
-
Method Detail
-
getEnabledProtocols
public java.lang.String[] getEnabledProtocols()
Description copied from interface:SSLUtil
The set of enabled protocols is the intersection of the implemented protocols and the configured protocols. If no protocols are explicitly configured, then all of the implemented protocols will be included in the returned array.- Specified by:
getEnabledProtocols
in interfaceSSLUtil
- Returns:
- The protocols currently enabled and available for clients to select from for the associated connection
-
getEnabledCiphers
public java.lang.String[] getEnabledCiphers()
Description copied from interface:SSLUtil
The set of enabled ciphers is the intersection of the implemented ciphers and the configured ciphers. If no ciphers are explicitly configured, then the default ciphers will be included in the returned array.The ciphers used during the TLS handshake may be further restricted by the
SSLUtil.getEnabledProtocols()
and the certificates.- Specified by:
getEnabledCiphers
in interfaceSSLUtil
- Returns:
- The ciphers currently enabled and available for clients to select from for the associated connection
-
getImplementedProtocols
protected abstract java.util.Set<java.lang.String> getImplementedProtocols()
-
getImplementedCiphers
protected abstract java.util.Set<java.lang.String> getImplementedCiphers()
-
getLog
protected abstract Log getLog()
-
isTls13Available
protected abstract boolean isTls13Available()
-
isTls13RenegAuthAvailable
protected abstract boolean isTls13RenegAuthAvailable()
-
-