Class SSLEngineHelper


  • public class SSLEngineHelper
    extends java.lang.Object
    • Field Detail

      • ENABLED_SERVER_PROTOCOLS

        public static final java.lang.String[] ENABLED_SERVER_PROTOCOLS
      • ENABLED_CLIENT_PROTOCOLS

        public static final java.lang.String[] ENABLED_CLIENT_PROTOCOLS
      • ENABLED_CIPHER_SUITES

        public static final java.lang.String[] ENABLED_CIPHER_SUITES
      • COMPATIBILITY_CIPHER_SUITES

        public static final java.lang.String[] COMPATIBILITY_CIPHER_SUITES
    • Constructor Detail

      • SSLEngineHelper

        public SSLEngineHelper()
    • Method Detail

      • getServerSSLContext

        public static javax.net.ssl.SSLContext getServerSSLContext​(java.security.cert.X509Certificate cert,
                                                                   java.security.PrivateKey privateKey)
                                                            throws java.security.KeyManagementException
        Throws:
        java.security.KeyManagementException
      • getClientSSLContext

        public static javax.net.ssl.SSLContext getClientSSLContext​(java.security.PublicKey publicKey)
                                                            throws java.security.KeyManagementException
        Throws:
        java.security.KeyManagementException
      • getClientSSLContext

        public static javax.net.ssl.SSLContext getClientSSLContext​(byte[] publicKey)
                                                            throws java.security.KeyManagementException
        Throws:
        java.security.KeyManagementException
      • getSSLEngine

        public static javax.net.ssl.SSLEngine getSSLEngine​(javax.net.ssl.SSLContext sslContext,
                                                           boolean clientMode)
      • getAllTrustingClientSSLContext

        public static javax.net.ssl.SSLContext getAllTrustingClientSSLContext()