Class DefaultSSLContextInitializer

  • All Implemented Interfaces:
    SSLContextInitializer

    public class DefaultSSLContextInitializer
    extends AbstractSSLContextInitializer
    Provides a default implementation of SSL context initializer which allows the setting of trust and key managers in order to create an SSL context.
    • Field Detail

      • keyManagers

        private KeyManager[] keyManagers
        Key managers.
      • createDefaultTrustManagers

        private final boolean createDefaultTrustManagers
        Whether default trust managers should be created.
    • Constructor Detail

      • DefaultSSLContextInitializer

        public DefaultSSLContextInitializer()
        Creates a new default ssl context initializer. Default trust managers will be produced.
      • DefaultSSLContextInitializer

        public DefaultSSLContextInitializer​(boolean defaultTrustManagers)
        Creates a new default ssl context initializer.
        Parameters:
        defaultTrustManagers - whether default trust managers should be created