Class JSSEUtil
java.lang.Object
org.apache.tomcat.util.net.SSLUtilBase
org.apache.tomcat.util.net.jsse.JSSEUtil
- All Implemented Interfaces:
SSLUtil
SSLUtil implementation for JSSE.
-
Nested Class Summary
Nested classes/interfaces inherited from interface SSLUtil
SSLUtil.ProtocolInfo -
Field Summary
Fields inherited from class SSLUtilBase
certificate, DEFAULT_KEY_ALIAS, sslHostConfig -
Constructor Summary
ConstructorsConstructorDescriptionJSSEUtil(SSLHostConfigCertificate certificate) Constructs an instance for the given certificate.JSSEUtil(SSLHostConfigCertificate certificate, boolean warnOnSkip) Constructs an instance for the given certificate. -
Method Summary
Modifier and TypeMethodDescriptioncreateSSLContextInternal(List<String> negotiableProtocols) Creates an SSL context with the given negotiable protocols.Returns the set of implemented SSL/TLS ciphers.Returns the set of implemented SSL/TLS protocols.protected LoggetLog()Returns the log for this utility.protected booleanReturns whether TLS 1.3 renegotiation authentication is available.Methods inherited from class SSLUtilBase
configureSessionContext, createSSLContext, getCRLs, getEnabledCiphers, getEnabledProtocols, getKeyManagers, getParameters, getTrustManagers
-
Constructor Details
-
JSSEUtil
Constructs an instance for the given certificate.- Parameters:
certificate- The certificate
-
JSSEUtil
Constructs an instance for the given certificate.- Parameters:
certificate- The certificatewarnOnSkip- Whether to warn when skipping unsupported protocols/ciphers
-
-
Method Details
-
getLog
Description copied from class:SSLUtilBaseReturns the log for this utility.- Specified by:
getLogin classSSLUtilBase- Returns:
- the log
-
getImplementedProtocols
Description copied from class:SSLUtilBaseReturns the set of implemented SSL/TLS protocols.- Specified by:
getImplementedProtocolsin classSSLUtilBase- Returns:
- the implemented protocols
-
getImplementedCiphers
Description copied from class:SSLUtilBaseReturns the set of implemented SSL/TLS ciphers.- Specified by:
getImplementedCiphersin classSSLUtilBase- Returns:
- the implemented ciphers
-
isTls13RenegAuthAvailable
protected boolean isTls13RenegAuthAvailable()Description copied from class:SSLUtilBaseReturns whether TLS 1.3 renegotiation authentication is available.- Specified by:
isTls13RenegAuthAvailablein classSSLUtilBase- Returns:
trueif TLS 1.3 renegotiation authentication is available
-
createSSLContextInternal
public SSLContext createSSLContextInternal(List<String> negotiableProtocols) throws NoSuchAlgorithmException Description copied from class:SSLUtilBaseCreates an SSL context with the given negotiable protocols.- Specified by:
createSSLContextInternalin classSSLUtilBase- Parameters:
negotiableProtocols- The negotiable protocols- Returns:
- the SSL context
- Throws:
NoSuchAlgorithmException
-