Package org.dogtagpki.jss.tomcat
Class JSSContext
java.lang.Object
org.dogtagpki.jss.tomcat.JSSContext
- All Implemented Interfaces:
org.apache.tomcat.util.net.SSLContext
Implements the
interface from Tomcat for creating SSL connections.
This class is a wrapper around the Mozilla-JSS implementation of JSSE, which
provides additional functionality not available in the SunJSSE implementation.
invalid reference
SSLContext
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SSLContextprivate JSSKeyManagerprivate JSSTrustManagerstatic org.slf4j.Logger -
Constructor Summary
ConstructorsConstructorDescriptionCreate the cContext for SSL connections.JSSContext(String alias) Create the cContext for SSL connections.JSSContext(List<String> aliases) Create the cContext for SSL connections. -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()getCertificateChain(String alias) voidinit(KeyManager[] kms, TrustManager[] tms, SecureRandom sr)
-
Field Details
-
logger
public static org.slf4j.Logger logger -
ctx
-
aliases
-
jkm
-
jtm
-
-
Constructor Details
-
JSSContext
public JSSContext()Create the cContext for SSL connections. -
JSSContext
Create the cContext for SSL connections.- Parameters:
alias- Certificate nickname used by the server for the connections.
-
JSSContext
Create the cContext for SSL connections.- Parameters:
aliases- List of certificate nicknames used by the server for the connections.
-
-
Method Details
-
init
public void init(KeyManager[] kms, TrustManager[] tms, SecureRandom sr) throws KeyManagementException - Specified by:
initin interfaceorg.apache.tomcat.util.net.SSLContext- Throws:
KeyManagementException
-
createSSLEngine
- Specified by:
createSSLEnginein interfaceorg.apache.tomcat.util.net.SSLContext
-
getServerSessionContext
- Specified by:
getServerSessionContextin interfaceorg.apache.tomcat.util.net.SSLContext
-
getServerSocketFactory
- Specified by:
getServerSocketFactoryin interfaceorg.apache.tomcat.util.net.SSLContext
-
getSupportedSSLParameters
- Specified by:
getSupportedSSLParametersin interfaceorg.apache.tomcat.util.net.SSLContext
-
getCertificateChain
- Specified by:
getCertificateChainin interfaceorg.apache.tomcat.util.net.SSLContext
-
getAcceptedIssuers
- Specified by:
getAcceptedIssuersin interfaceorg.apache.tomcat.util.net.SSLContext
-
destroy
public void destroy()- Specified by:
destroyin interfaceorg.apache.tomcat.util.net.SSLContext
-