Class KeyStoreDescriptorImpl
java.lang.Object
org.refcodes.security.KeyStoreDescriptorImpl
- All Implemented Interfaces:
KeyStoreDescriptor, TrustStoreDescriptor
The immutable
KeyStoreDescriptorImpl implements the
TrustStoreDescriptor interface.-
Nested Class Summary
Nested classes/interfaces inherited from interface KeyStoreDescriptor
KeyStoreDescriptor.KeyStoreDescriptorBuilderNested classes/interfaces inherited from interface TrustStoreDescriptor
TrustStoreDescriptor.TrustStoreDescriptorBuilder -
Constructor Summary
ConstructorsConstructorDescriptionKeyStoreDescriptorImpl(File aStoreFile) Constructs aKeyStoreDescriptorwith the data required to access aKeyStore.KeyStoreDescriptorImpl(File aStoreFile, String aStorePassword) Constructs aKeyStoreDescriptorwith the data required to access aKeyStore.KeyStoreDescriptorImpl(File aStoreFile, String aStorePassword, String aKeyPassword) Constructs aKeyStoreDescriptorwith the data required to access aKeyStore.KeyStoreDescriptorImpl(File aStoreFile, StoreType aStoreType) Constructs aKeyStoreDescriptorwith the data required to access aKeyStore.KeyStoreDescriptorImpl(File aStoreFile, StoreType aStoreType, String aStorePassword) Constructs aKeyStoreDescriptorwith the data required to access aKeyStore.KeyStoreDescriptorImpl(File aStoreFile, StoreType aStoreType, String aStorePassword, String aKeyPassword) Constructs aKeyStoreDescriptorwith the data required to access aKeyStore. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the key's password.Retrieves the keysotre's password.
-
Constructor Details
-
KeyStoreDescriptorImpl
Constructs aKeyStoreDescriptorwith the data required to access aKeyStore. TheStoreTypedefaults toStoreType.JKS. -
KeyStoreDescriptorImpl
-
KeyStoreDescriptorImpl
-
KeyStoreDescriptorImpl
-
KeyStoreDescriptorImpl
-
KeyStoreDescriptorImpl
-
-
Method Details
-
getStoreFile
- Specified by:
getStoreFilein interfaceTrustStoreDescriptor- Returns:
- The
KeyStoreFile.
-
getStoreType
- Specified by:
getStoreTypein interfaceTrustStoreDescriptor- Returns:
- The
KeyStore'sStoreType.
-
getStorePassword
Retrieves the keysotre's password.- Specified by:
getStorePasswordin interfaceTrustStoreDescriptor- Returns:
- The
KeyStorepassword.
-
getKeyPassword
Retrieves the key's password.- Specified by:
getKeyPasswordin interfaceKeyStoreDescriptor- Returns:
- The key password.
-