Class SslParameterSet

java.lang.Object
org.opentcs.access.SslParameterSet
All Implemented Interfaces:
Serializable

public class SslParameterSet extends Object implements Serializable
A set of parameters to be used for SSL-encrypted socket connections.
See Also:
  • Field Details

    • DEFAULT_KEYSTORE_TYPE

      public static final String DEFAULT_KEYSTORE_TYPE
      The default type used for truststore and keystore files.
      See Also:
  • Constructor Details

    • SslParameterSet

      public SslParameterSet(@Nonnull String keystoreType, @Nullable File keystoreFile, @Nullable String keystorePassword, @Nullable File truststoreFile, @Nullable String truststorePassword)
      Creates a new instance.
      Parameters:
      keystoreType - The type used for keystore and truststore
      keystoreFile - The keystore file
      keystorePassword - The keystore file password
      truststoreFile - The truststore file
      truststorePassword - The truststore file password
  • Method Details

    • getKeystoreType

      @Nonnull public String getKeystoreType()
      Returns the keystoreType used to decrypt the keystore and truststore.
      Returns:
      The keystoreType used to decrypt the keystore and truststore
    • getKeystoreFile

      @Nullable public File getKeystoreFile()
      Returns the file path of the keystore file.
      Returns:
      The file path of the keystore file
    • getKeystorePassword

      @Nullable public String getKeystorePassword()
      Returns the password for the keystore file.
      Returns:
      The password for the keystore file
    • getTruststoreFile

      @Nullable public File getTruststoreFile()
      Returns the file path of the truststore file.
      Returns:
      The file path of the truststore file
    • getTruststorePassword

      @Nullable public String getTruststorePassword()
      Returns the password for the truststore file.
      Returns:
      The password for the truststore file