Class AbstractSSLContextInitializer

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.commons.logging.Log logger
      Log for this class.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract javax.net.ssl.KeyManager[] getKeyManagers()
      Returns the key managers used when creating SSL contexts.
      abstract javax.net.ssl.TrustManager[] getTrustManagers()
      Returns the trust managers used when creating SSL contexts.
      javax.net.ssl.SSLContext initSSLContext​(java.lang.String protocol)
      Creates an initialized SSLContext for the supplied protocol.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        protected final org.apache.commons.logging.Log logger
        Log for this class.
    • Constructor Detail

      • AbstractSSLContextInitializer

        public AbstractSSLContextInitializer()
    • Method Detail

      • initSSLContext

        public javax.net.ssl.SSLContext initSSLContext​(java.lang.String protocol)
                                                throws java.security.GeneralSecurityException
        Creates an initialized SSLContext for the supplied protocol.
        Specified by:
        initSSLContext in interface SSLContextInitializer
        Parameters:
        protocol - type to use for SSL
        Returns:
        SSLContext
        Throws:
        java.security.GeneralSecurityException - if the SSLContext cannot be created
      • getTrustManagers

        public abstract javax.net.ssl.TrustManager[] getTrustManagers()
                                                               throws java.security.GeneralSecurityException
        Returns the trust managers used when creating SSL contexts.
        Specified by:
        getTrustManagers in interface SSLContextInitializer
        Returns:
        TrustManager[]
        Throws:
        java.security.GeneralSecurityException - if an errors occurs while loading the TrustManagers
      • getKeyManagers

        public abstract javax.net.ssl.KeyManager[] getKeyManagers()
                                                           throws java.security.GeneralSecurityException
        Returns the key managers used when creating SSL contexts.
        Specified by:
        getKeyManagers in interface SSLContextInitializer
        Returns:
        KeyManagers[]
        Throws:
        java.security.GeneralSecurityException - if an errors occurs while loading the KeyManagers