Package com.linkedin.alpini.io.ssl
Class SSLContextBuilder
java.lang.Object
com.linkedin.alpini.io.ssl.SSLContextBuilder
Builds a new instance of
SSLContext
object from given key store and trust store parameters.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(File keyStoreFile, String keyStorePassword, String keyStoreType, File trustStoreFile, String trustStorePassword) The keyStoreFile takes a File object of p12 or jks file depends on keyStoreType The trustStoreFile always takes a File object of JKS file.Deprecated.Builds from key store file instead of raw key store data.
-
Constructor Details
-
SSLContextBuilder
public SSLContextBuilder()
-
-
Method Details
-
build
Deprecated.Builds from key store file instead of raw key store data.This constructor uses keyStoreData for both keyStore and trustStore. It only supports base64 encoded jks format keyStore.- Throws:
Exception
-
build
public SSLContext build(File keyStoreFile, String keyStorePassword, String keyStoreType, File trustStoreFile, String trustStorePassword) throws Exception The keyStoreFile takes a File object of p12 or jks file depends on keyStoreType The trustStoreFile always takes a File object of JKS file.- Throws:
Exception
-