Package spark.ssl

Class SslStores

java.lang.Object
spark.ssl.SslStores

public class SslStores extends Object
SSL Stores
  • Field Details

    • keystoreFile

      protected String keystoreFile
    • keystorePassword

      protected String keystorePassword
    • certAlias

      protected String certAlias
    • truststoreFile

      protected String truststoreFile
    • truststorePassword

      protected String truststorePassword
    • needsClientCert

      protected boolean needsClientCert
  • Constructor Details

    • SslStores

      private SslStores(String keystoreFile, String keystorePassword, String certAlias, String truststoreFile, String truststorePassword, boolean needsClientCert)
  • Method Details

    • create

      public static SslStores create(String keystoreFile, String keystorePassword, String truststoreFile, String truststorePassword)
      Creates a Stores instance.
      Parameters:
      keystoreFile - the keystoreFile
      keystorePassword - the keystorePassword
      truststoreFile - the truststoreFile
      truststorePassword - the truststorePassword
      Returns:
      the SslStores instance.
    • create

      public static SslStores create(String keystoreFile, String keystorePassword, String certAlias, String truststoreFile, String truststorePassword)
    • create

      public static SslStores create(String keystoreFile, String keystorePassword, String truststoreFile, String truststorePassword, boolean needsClientCert)
    • create

      public static SslStores create(String keystoreFile, String keystorePassword, String certAlias, String truststoreFile, String truststorePassword, boolean needsClientCert)
    • keystoreFile

      public String keystoreFile()
      Returns:
      keystoreFile
    • keystorePassword

      public String keystorePassword()
      Returns:
      keystorePassword
    • certAlias

      public String certAlias()
      Returns:
      certAlias
    • trustStoreFile

      public String trustStoreFile()
      Returns:
      trustStoreFile
    • trustStorePassword

      public String trustStorePassword()
      Returns:
      trustStorePassword
    • needsClientCert

      public boolean needsClientCert()
      Returns:
      needsClientCert