java.lang.Object
org.refcodes.security.TrustStoreDescriptorImpl
- All Implemented Interfaces:
TrustStoreDescriptor
public class TrustStoreDescriptorImpl extends Object implements TrustStoreDescriptor
The immutable
TrustStoreDescriptorImpl implements the
TrustStoreDescriptor interface.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.security.TrustStoreDescriptor
TrustStoreDescriptor.TrustStoreDescriptorBuilder -
Constructor Summary
Constructors Constructor Description TrustStoreDescriptorImpl(File aStoreFile)Constructs aKeyStoreDescriptorwith the data required to access a keystore.TrustStoreDescriptorImpl(File aStoreFile, String aStorePassword)Constructs aKeyStoreDescriptorwith the data required to access a keystore.TrustStoreDescriptorImpl(File aStoreFile, StoreType aStoreType)Constructs aKeyStoreDescriptorwith the data required to access a keystore.TrustStoreDescriptorImpl(File aStoreFile, StoreType aStoreType, String aStorePassword)Constructs aKeyStoreDescriptorwith the data required to access a keystore. -
Method Summary
Modifier and Type Method Description FilegetStoreFile()StringgetStorePassword()Retrieves the keysotre's password.StoreTypegetStoreType()
-
Constructor Details
-
TrustStoreDescriptorImpl
Constructs aKeyStoreDescriptorwith the data required to access a keystore. TheStoreTypedefaults toStoreType.JKS.- Parameters:
aStoreFile- The keystoreFile.
-
TrustStoreDescriptorImpl
Constructs aKeyStoreDescriptorwith the data required to access a keystore. -
TrustStoreDescriptorImpl
Constructs aKeyStoreDescriptorwith the data required to access a keystore.- Parameters:
aStoreFile- The keystoreFile.aStorePassword- The keystore password.
-
TrustStoreDescriptorImpl
Constructs aKeyStoreDescriptorwith the data required to access a keystore.
-
-
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.
-