Package org.opentcs.access
Class SslParameterSet
java.lang.Object
org.opentcs.access.SslParameterSet
- All Implemented Interfaces:
Serializable
A set of parameters to be used for SSL-encrypted socket connections.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The default type used for truststore and keystore files. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the file path of the keystore file.Returns the password for the keystore file.Returns the keystoreType used to decrypt the keystore and truststore.Returns the file path of the truststore file.Returns the password for the truststore file.
-
Field Details
-
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 truststorekeystoreFile
- The keystore filekeystorePassword
- The keystore file passwordtruststoreFile
- The truststore filetruststorePassword
- The truststore file password
-
-
Method Details
-
getKeystoreType
Returns the keystoreType used to decrypt the keystore and truststore.- Returns:
- The keystoreType used to decrypt the keystore and truststore
-
getKeystoreFile
Returns the file path of the keystore file.- Returns:
- The file path of the keystore file
-
getKeystorePassword
Returns the password for the keystore file.- Returns:
- The password for the keystore file
-
getTruststoreFile
Returns the file path of the truststore file.- Returns:
- The file path of the truststore file
-
getTruststorePassword
Returns the password for the truststore file.- Returns:
- The password for the truststore file
-