Class SSLContextBuilder

java.lang.Object
com.linkedin.alpini.io.ssl.SSLContextBuilder

public class SSLContextBuilder extends Object
Builds a new instance of SSLContext object from given key store and trust store parameters.
  • Constructor Details

    • SSLContextBuilder

      public SSLContextBuilder()
  • Method Details

    • build

      @Deprecated public SSLContext build(String keyStoreData, String keyStorePassword) throws Exception
      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