Package com.linkedin.alpini.io.ssl
Class SSLContextBuilder
- java.lang.Object
-
- com.linkedin.alpini.io.ssl.SSLContextBuilder
-
public class SSLContextBuilder extends java.lang.ObjectBuilds a new instance ofSSLContextobject from given key store and trust store parameters.
-
-
Constructor Summary
Constructors Constructor Description SSLContextBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description javax.net.ssl.SSLContextbuild(java.io.File keyStoreFile, java.lang.String keyStorePassword, java.lang.String keyStoreType, java.io.File trustStoreFile, java.lang.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.javax.net.ssl.SSLContextbuild(java.lang.String keyStoreData, java.lang.String keyStorePassword)Deprecated.Builds from key store file instead of raw key store data.
-
-
-
Method Detail
-
build
@Deprecated public javax.net.ssl.SSLContext build(java.lang.String keyStoreData, java.lang.String keyStorePassword) throws java.lang.ExceptionDeprecated.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:
java.lang.Exception
-
build
public javax.net.ssl.SSLContext build(java.io.File keyStoreFile, java.lang.String keyStorePassword, java.lang.String keyStoreType, java.io.File trustStoreFile, java.lang.String trustStorePassword) throws java.lang.ExceptionThe keyStoreFile takes a File object of p12 or jks file depends on keyStoreType The trustStoreFile always takes a File object of JKS file.- Throws:
java.lang.Exception
-
-