Class JdkSslContext

    • Method Detail

      • context

        public final javax.net.ssl.SSLContext context()
        Returns the JDK SSLContext object held by this context.
      • isClient

        public final boolean isClient()
        Description copied from class: SslContext
        Returns the true if and only if this context is for client-side.
        Specified by:
        isClient in class SslContext
      • sessionContext

        public final javax.net.ssl.SSLSessionContext sessionContext()
        Returns the JDK SSLSessionContext object held by this context.
        Specified by:
        sessionContext in class SslContext
      • cipherSuites

        public final java.util.List<java.lang.String> cipherSuites()
        Description copied from class: SslContext
        Returns the list of enabled cipher suites, in the order of preference.
        Specified by:
        cipherSuites in class SslContext
      • buildKeyManagerFactory

        @Deprecated
        protected static javax.net.ssl.KeyManagerFactory buildKeyManagerFactory​(java.io.File certChainFile,
                                                                                java.io.File keyFile,
                                                                                java.lang.String keyPassword,
                                                                                javax.net.ssl.KeyManagerFactory kmf)
                                                                         throws java.security.UnrecoverableKeyException,
                                                                                java.security.KeyStoreException,
                                                                                java.security.NoSuchAlgorithmException,
                                                                                javax.crypto.NoSuchPaddingException,
                                                                                java.security.spec.InvalidKeySpecException,
                                                                                java.security.InvalidAlgorithmParameterException,
                                                                                java.security.cert.CertificateException,
                                                                                java.security.KeyException,
                                                                                java.io.IOException
        Deprecated.
        will be removed.
        Build a KeyManagerFactory based upon a key file, key file password, and a certificate chain.
        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.
        kmf - The existing KeyManagerFactory that will be used if not null
        Returns:
        A KeyManagerFactory based upon a key file, key file password, and a certificate chain.
        Throws:
        java.security.UnrecoverableKeyException
        java.security.KeyStoreException
        java.security.NoSuchAlgorithmException
        javax.crypto.NoSuchPaddingException
        java.security.spec.InvalidKeySpecException
        java.security.InvalidAlgorithmParameterException
        java.security.cert.CertificateException
        java.security.KeyException
        java.io.IOException
      • buildKeyManagerFactory

        @Deprecated
        protected static javax.net.ssl.KeyManagerFactory buildKeyManagerFactory​(java.io.File certChainFile,
                                                                                java.lang.String keyAlgorithm,
                                                                                java.io.File keyFile,
                                                                                java.lang.String keyPassword,
                                                                                javax.net.ssl.KeyManagerFactory kmf)
                                                                         throws java.security.KeyStoreException,
                                                                                java.security.NoSuchAlgorithmException,
                                                                                javax.crypto.NoSuchPaddingException,
                                                                                java.security.spec.InvalidKeySpecException,
                                                                                java.security.InvalidAlgorithmParameterException,
                                                                                java.io.IOException,
                                                                                java.security.cert.CertificateException,
                                                                                java.security.KeyException,
                                                                                java.security.UnrecoverableKeyException
        Deprecated.
        will be removed.
        Build a KeyManagerFactory based upon a key algorithm, key file, key file password, and a certificate chain.
        Parameters:
        certChainFile - an buildKeyManagerFactory X.509 certificate chain file in PEM format
        keyAlgorithm - the standard name of the requested algorithm. See the Java Secure Socket Extension Reference Guide for information about standard algorithm names.
        keyFile - a PKCS#8 private key file in PEM format
        keyPassword - the password of the keyFile. null if it's not password-protected.
        kmf - The existing KeyManagerFactory that will be used if not null
        Returns:
        A KeyManagerFactory based upon a key algorithm, key file, key file password, and a certificate chain.
        Throws:
        java.security.KeyStoreException
        java.security.NoSuchAlgorithmException
        javax.crypto.NoSuchPaddingException
        java.security.spec.InvalidKeySpecException
        java.security.InvalidAlgorithmParameterException
        java.io.IOException
        java.security.cert.CertificateException
        java.security.KeyException
        java.security.UnrecoverableKeyException