Package com.uc4.communication
Class CompositeSslContextFactory
java.lang.Object
com.uc4.communication.CompositeSslContextFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLoads all certificates contained in the path (configured by setTrustedCertFolderPath) into a new keystore, including all default trusted certificates (unless includeSystemTrustStore is false)static SSLContext
createSSLContext
(TraceListener traceListener, 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 SslContextvoid
setIncludeSystemTrustStore
(boolean includeSystemTrustStore) Do we want to load also certificate from the system (java default keystore) default: truevoid
setTrustedCertFolderPath
(String trustedCertFolderPath) file-system-folder containing extra certificates to be trustedvoid
useTrustedCertFolderOnly
(boolean useTrustedCertFolderOnly) Do we pin the ocntent of the trusted cert folder to be only used
-
Constructor Details
-
CompositeSslContextFactory
public CompositeSslContextFactory() -
CompositeSslContextFactory
-
-
Method Details
-
createSSLContext
public static SSLContext createSSLContext(TraceListener traceListener, 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
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
Loads all certificates contained in the path (configured by setTrustedCertFolderPath) into a new keystore, including all default trusted certificates (unless includeSystemTrustStore is false)
-