JavaScript is disabled on your browser.
Skip navigation links
io.netty.handler.ssl

Class JdkSslContext

    • Constructor Detail

      • JdkSslContext

        public JdkSslContext(javax.net.ssl.SSLContext sslContext,
         boolean isClient,
         ClientAuth clientAuth)
        Creates a new JdkSslContext from a pre-configured SSLContext.
        Parameters:
        sslContext - the SSLContext to use.
        isClient - true if this context should create SSLEngines for client-side usage.
        clientAuth - the ClientAuth to use. This will only be used when is false.
      • JdkSslContext

        public JdkSslContext(javax.net.ssl.SSLContext sslContext,
         boolean isClient,
         java.lang.Iterable<java.lang.String> ciphers,
         CipherSuiteFilter cipherFilter,
         ApplicationProtocolConfig apn,
         ClientAuth clientAuth)
        Creates a new JdkSslContext from a pre-configured SSLContext.
        Parameters:
        sslContext - the SSLContext to use.
        isClient - true if this context should create SSLEngines for client-side usage.
        ciphers - the ciphers to use or null if the standard should be used.
        cipherFilter - the filter to use.
        apn - the ApplicationProtocolConfig to use.
        clientAuth - the ClientAuth to use. This will only be used when is false.
    • 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
      • sessionCacheSize

        public final long sessionCacheSize()
        Description copied from class: SslContext
        Returns the size of the cache used for storing SSL session objects.
        Specified by:
        sessionCacheSize in class SslContext
      • sessionTimeout

        public final long sessionTimeout()
        Description copied from class: SslContext
        Returns the timeout for the cached SSL session objects, in seconds.
        Specified by:
        sessionTimeout 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 - a 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 - a 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
Skip navigation links

Copyright © 2008–2018 The Netty Project. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /