Class CompositeSslContextFactory


  • public class CompositeSslContextFactory
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.net.ssl.SSLContext createSSLContext()
      Loads all certificates contained in the path (configured by setTrustedCertFolderPath) into a new keystore, including all default trusted certificates (unless includeSystemTrustStore is false)
      static javax.net.ssl.SSLContext createSSLContext​(TraceListener traceListener, java.lang.String trustedCertFolderPath, boolean useTrustedCertFolderOnly)
      Loads all certificates contained in the path (configured by trustedCertFolderPath) into a new keystore, including all default trusted certificates and sets this store as trustStore for the SslContext
      void setIncludeSystemTrustStore​(boolean includeSystemTrustStore)
      Do we want to load also certificate from the system (java default keystore) default: true
      void setTrustedCertFolderPath​(java.lang.String trustedCertFolderPath)
      file-system-folder containing extra certificates to be trusted
      void useTrustedCertFolderOnly​(boolean useTrustedCertFolderOnly)
      Do we pin the ocntent of the trusted cert folder to be only used
      • Methods inherited from class java.lang.Object

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

      • CompositeSslContextFactory

        public CompositeSslContextFactory()
      • CompositeSslContextFactory

        public CompositeSslContextFactory​(TraceListener traceListener)
    • Method Detail

      • createSSLContext

        public static javax.net.ssl.SSLContext createSSLContext​(TraceListener traceListener,
                                                                java.lang.String trustedCertFolderPath,
                                                                boolean useTrustedCertFolderOnly)
        Loads all certificates contained in the path (configured by trustedCertFolderPath) into a new keystore, including all default trusted certificates and sets this store as trustStore for the SslContext
      • setTrustedCertFolderPath

        public void setTrustedCertFolderPath​(java.lang.String trustedCertFolderPath)
        file-system-folder containing extra certificates to be trusted
        Parameters:
        trustedCertFolderPath -
      • setIncludeSystemTrustStore

        public void setIncludeSystemTrustStore​(boolean includeSystemTrustStore)
        Do we want to load also certificate from the system (java default keystore) default: true
      • useTrustedCertFolderOnly

        public void useTrustedCertFolderOnly​(boolean useTrustedCertFolderOnly)
        Do we pin the ocntent of the trusted cert folder to be only used
        Parameters:
        useTrustedCertFolderOnly - true: only trusted cert folder certs, false: also jvm trusted certs (currently no OS certs are being considered)
      • createSSLContext

        public javax.net.ssl.SSLContext createSSLContext()
        Loads all certificates contained in the path (configured by setTrustedCertFolderPath) into a new keystore, including all default trusted certificates (unless includeSystemTrustStore is false)