Package anbxj
Class Crypto_KeyStoreSettings
java.lang.Object
anbxj.Crypto_KeyStoreSettings
- All Implemented Interfaces:
Serializable
Keystore Settings
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCrypto_KeyStoreSettings
(String path, String myAlias, String enc) Constructs a Crypto_KeyStoreSettings object.Crypto_KeyStoreSettings
(String localKeyStore, String passphraseLocalKeyStore, String remoteKeyStore, String passphraseRemoteKeyStore, String passphrasePrivateKeyLocalKeyStore, String keyStoreType, String myAlias, String rootCA) Constructs a Crypto_KeyStoreSettings object with specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionGets the certificate type.Gets the key store type.Gets the local key store path.Gets the alias used in the keystore.Gets the passphrase for the local keystore.Gets the passphrase for the private key in the local keystore.Gets the passphrase for the remote keystore.Gets the path of the remote keystore.Gets the root CA path.void
setCertificateType
(String certificateType) Sets the certificate type.void
setKeyStoreType
(String keyStoreType) Sets the key store type.void
Sets the root CA path.
-
Constructor Details
-
Crypto_KeyStoreSettings
public Crypto_KeyStoreSettings(String localKeyStore, String passphraseLocalKeyStore, String remoteKeyStore, String passphraseRemoteKeyStore, String passphrasePrivateKeyLocalKeyStore, String keyStoreType, String myAlias, String rootCA) Constructs a Crypto_KeyStoreSettings object with specified parameters.- Parameters:
localKeyStore
- The path to the local keystore file.passphraseLocalKeyStore
- The passphrase for the local keystore.remoteKeyStore
- The path to the remote keystore file.passphraseRemoteKeyStore
- The passphrase for the remote keystore.passphrasePrivateKeyLocalKeyStore
- The passphrase for the private key in the local keystore.keyStoreType
- The type of the keystore.myAlias
- The alias used in the keystore.rootCA
- The root certificate authority (can be null).
-
Crypto_KeyStoreSettings
Constructs a Crypto_KeyStoreSettings object.- Parameters:
path
- The path where the configuration file is located.myAlias
- The alias used in the keystore.enc
- The encryption identifier.
-
-
Method Details
-
getCertificateType
Gets the certificate type.- Returns:
- the certificateType
-
getKeyStoreType
Gets the key store type.- Returns:
- the keyStoreType
-
getLocalKeyStore
Gets the local key store path.- Returns:
- the localKeyStore
-
getMyAlias
Gets the alias used in the keystore.- Returns:
- the myAlias
-
getPassphraseLocalKeyStore
Gets the passphrase for the local keystore.- Returns:
- the passphraseLocalKeyStore
-
getPassphraseRemoteKeyStore
Gets the passphrase for the remote keystore.- Returns:
- the passphraseRemoteKeyStore
-
getRemoteKeyStore
Gets the path of the remote keystore.- Returns:
- the remoteKeyStore
-
setCertificateType
Sets the certificate type.- Parameters:
certificateType
- the certificateType to set
-
setKeyStoreType
Sets the key store type.- Parameters:
keyStoreType
- the keyStoreType to set
-
getPassphrasePrivateKeyLocalKeyStore
Gets the passphrase for the private key in the local keystore.- Returns:
- the passphrasePrivateKeyLocalKeyStore
-
getRootCA
Gets the root CA path.- Returns:
- the rootCA
-
setRootCA
Sets the root CA path.- Parameters:
rootCA
- the rootCA to set
-