Package org.apache.tomcat.util.net
Class SSLImplementation
java.lang.Object
org.apache.tomcat.util.net.SSLImplementation
- Direct Known Subclasses:
JSSEImplementation,OpenSSLImplementation
Provides a factory and base implementation for the Tomcat specific mechanism
that allows alternative SSL/TLS implementations to be used without requiring
the implementation of a full JSSE provider.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SSLImplementationgetInstance(String className) Obtain an instance (not a singleton) of the implementation with the given class name.abstract SSLSupportgetSSLSupport(SSLSession session) Deprecated.This will be removed in Tomcat 10.1.x onwards.getSSLSupport(SSLSession session, Map<String, List<String>> additionalAttributes) Obtain an instance of SSLSupport.abstract SSLUtilgetSSLUtil(SSLHostConfigCertificate certificate) abstract boolean
-
Constructor Details
-
SSLImplementation
public SSLImplementation()
-
-
Method Details
-
getInstance
Obtain an instance (not a singleton) of the implementation with the given class name.- Parameters:
className- The class name of the required implementation or null to use the default (currentlyJSSEImplementation.- Returns:
- An instance of the required implementation
- Throws:
ClassNotFoundException- If an instance of the requested class cannot be created
-
getSSLSupport
Obtain an instance of SSLSupport.- Parameters:
session- The SSL sessionadditionalAttributes- Additional SSL attributes that are not available from the session.- Returns:
- An instance of SSLSupport based on the given session and the provided additional attributes
-
getSSLSupport
Deprecated.This will be removed in Tomcat 10.1.x onwards. UsegetSSLSupport(SSLSession, Map).Obtain an instance of SSLSupport.- Parameters:
session- The TLS session- Returns:
- An instance of SSLSupport based on the given session.
-
getSSLUtil
-
isAlpnSupported
public abstract boolean isAlpnSupported()
-