Class JdkSslServerContext


public final class JdkSslServerContext extends JdkSslContext
A server-side SslContext which uses JDK's SSL/TLS implementation.
  • Field Details

  • Constructor Details

    • JdkSslServerContext

      public JdkSslServerContext(File certChainFile, File keyFile) throws SSLException
      Creates a new instance.
      Parameters:
      certChainFile - an X.509 certificate chain file in PEM format
      keyFile - a PKCS#8 private key file in PEM format
      Throws:
      SSLException
    • JdkSslServerContext

      public JdkSslServerContext(File certChainFile, File keyFile, String keyPassword) throws SSLException
      Creates a new instance.
      Parameters:
      certChainFile - an X.509 certificate chain file in PEM format
      keyFile - a PKCS#8 private key file in PEM format
      keyPassword - the password of the keyFile. null if it's not password-protected.
      Throws:
      SSLException
    • JdkSslServerContext

      public JdkSslServerContext(SslBufferPool bufPool, File certChainFile, File keyFile, String keyPassword, Iterable<String> ciphers, Iterable<String> nextProtocols, long sessionCacheSize, long sessionTimeout) throws SSLException
      Creates a new instance.
      Parameters:
      bufPool - the buffer pool which will be used by this context. null to use the default buffer pool.
      certChainFile - an X.509 certificate chain file in PEM format
      keyFile - a PKCS#8 private key file in PEM format
      keyPassword - the password of the keyFile. null if it's not password-protected.
      ciphers - the cipher suites to enable, in the order of preference. null to use the default cipher suites.
      nextProtocols - the application layer protocols to accept, in the order of preference. null to disable TLS NPN/ALPN extension.
      sessionCacheSize - the size of the cache used for storing SSL session objects. 0 to use the default value.
      sessionTimeout - the timeout for the cached SSL session objects, in seconds. 0 to use the default value.
      Throws:
      SSLException
  • Method Details