Class JSSContext

java.lang.Object
org.dogtagpki.jss.tomcat.JSSContext
All Implemented Interfaces:
org.apache.tomcat.util.net.SSLContext

public class JSSContext extends Object implements org.apache.tomcat.util.net.SSLContext
Implements the
invalid reference
SSLContext
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.
See Also:
  • SSLContext
  • invalid reference
    org.mozilla.jss.ssl.KeyManagerFactory#getInstance(String algorithm, String provider)
  • invalid reference
    org.mozilla.jss.ssl.TrustManagerFactory#getInstance(String algorithm, String provider)
  • Field Details

  • Constructor Details

    • JSSContext

      public JSSContext()
      Create the cContext for SSL connections.
    • JSSContext

      public JSSContext(String alias)
      Create the cContext for SSL connections.
      Parameters:
      alias - Certificate nickname used by the server for the connections.
    • JSSContext

      public JSSContext(List<String> aliases)
      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:
      init in interface org.apache.tomcat.util.net.SSLContext
      Throws:
      KeyManagementException
    • createSSLEngine

      public SSLEngine createSSLEngine()
      Specified by:
      createSSLEngine in interface org.apache.tomcat.util.net.SSLContext
    • getServerSessionContext

      public SSLSessionContext getServerSessionContext()
      Specified by:
      getServerSessionContext in interface org.apache.tomcat.util.net.SSLContext
    • getServerSocketFactory

      public SSLServerSocketFactory getServerSocketFactory()
      Specified by:
      getServerSocketFactory in interface org.apache.tomcat.util.net.SSLContext
    • getSupportedSSLParameters

      public SSLParameters getSupportedSSLParameters()
      Specified by:
      getSupportedSSLParameters in interface org.apache.tomcat.util.net.SSLContext
    • getCertificateChain

      public X509Certificate[] getCertificateChain(String alias)
      Specified by:
      getCertificateChain in interface org.apache.tomcat.util.net.SSLContext
    • getAcceptedIssuers

      public X509Certificate[] getAcceptedIssuers()
      Specified by:
      getAcceptedIssuers in interface org.apache.tomcat.util.net.SSLContext
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.apache.tomcat.util.net.SSLContext