Class SslContextFactory


  • public class SslContextFactory
    extends java.lang.Object
    SslContextFactory.
    Author:
    Tristan Tarrant
    • Constructor Detail

      • SslContextFactory

        public SslContextFactory()
    • Method Detail

      • keyStoreFileName

        public SslContextFactory keyStoreFileName​(java.lang.String keyStoreFileName)
      • keyStorePassword

        public SslContextFactory keyStorePassword​(java.lang.String keyStorePassword)
      • keyStorePassword

        public SslContextFactory keyStorePassword​(char[] keyStorePassword)
      • keyStoreCertificatePassword

        public SslContextFactory keyStoreCertificatePassword​(char[] keyStoreCertificatePassword)
      • keyStoreCertificatePassword

        public SslContextFactory keyStoreCertificatePassword​(java.lang.String keyStoreCertificatePassword)
      • keyStoreType

        public SslContextFactory keyStoreType​(java.lang.String keyStoreType)
      • trustStore

        public SslContextFactory trustStore​(java.security.KeyStore trustStore)
      • trustStoreFileName

        public SslContextFactory trustStoreFileName​(java.lang.String trustStoreFileName)
      • trustStorePassword

        public SslContextFactory trustStorePassword​(char[] trustStorePassword)
      • trustStorePassword

        public SslContextFactory trustStorePassword​(java.lang.String trustStorePassword)
      • trustStoreType

        public SslContextFactory trustStoreType​(java.lang.String trustStoreType)
      • sslProtocol

        public SslContextFactory sslProtocol​(java.lang.String sslProtocol)
      • sslProvider

        public SslContextFactory sslProvider​(java.lang.String sslProvider)
      • classLoader

        public SslContextFactory classLoader​(java.lang.ClassLoader classLoader)
      • getContext

        public javax.net.ssl.SSLContext getContext()
      • getKeyManagerFactory

        public javax.net.ssl.KeyManagerFactory getKeyManagerFactory()
                                                             throws java.io.IOException,
                                                                    java.security.GeneralSecurityException
        Throws:
        java.io.IOException
        java.security.GeneralSecurityException
      • getTrustManagerFactory

        public javax.net.ssl.TrustManagerFactory getTrustManagerFactory()
                                                                 throws java.io.IOException,
                                                                        java.security.GeneralSecurityException
        Throws:
        java.io.IOException
        java.security.GeneralSecurityException
      • getSslProvider

        public static java.lang.String getSslProvider()
      • getEngine

        public static javax.net.ssl.SSLEngine getEngine​(javax.net.ssl.SSLContext sslContext,
                                                        boolean useClientMode,
                                                        boolean needClientAuth)