- java.lang.Object
-
- org.refcodes.security.TrustStoreDescriptorImpl
-
- All Implemented Interfaces:
TrustStoreDescriptor
public class TrustStoreDescriptorImpl extends Object implements TrustStoreDescriptor
The immutableTrustStoreDescriptorImplimplements theTrustStoreDescriptorinterface.
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilegetStoreFile()StringgetStorePassword()Retrieves the keysotre's password.StoreTypegetStoreType()
-
-
-
Constructor Detail
-
TrustStoreDescriptorImpl
public TrustStoreDescriptorImpl(File aStoreFile)
Constructs aKeyStoreDescriptorwith the data required to access a keystore. TheStoreTypedefaults toStoreType.JKS.- Parameters:
aStoreFile- The keystoreFile.
-
TrustStoreDescriptorImpl
public TrustStoreDescriptorImpl(File aStoreFile, StoreType aStoreType)
Constructs aKeyStoreDescriptorwith the data required to access a keystore.
-
TrustStoreDescriptorImpl
public TrustStoreDescriptorImpl(File aStoreFile, String aStorePassword)
Constructs aKeyStoreDescriptorwith the data required to access a keystore.- Parameters:
aStoreFile- The keystoreFile.aStorePassword- The keystore password.
-
TrustStoreDescriptorImpl
public TrustStoreDescriptorImpl(File aStoreFile, StoreType aStoreType, String aStorePassword)
Constructs aKeyStoreDescriptorwith the data required to access a keystore.
-
-
Method Detail
-
getStoreFile
public File getStoreFile()
- Specified by:
getStoreFilein interfaceTrustStoreDescriptor- Returns:
- The
KeyStoreFile.
-
getStoreType
public StoreType getStoreType()
- Specified by:
getStoreTypein interfaceTrustStoreDescriptor- Returns:
- The
KeyStore'sStoreType.
-
getStorePassword
public String getStorePassword()
Retrieves the keysotre's password.- Specified by:
getStorePasswordin interfaceTrustStoreDescriptor- Returns:
- The
KeyStorepassword.
-
-