java.lang.Object
org.refcodes.security.TrustStoreDescriptorBuilderImpl
- All Implemented Interfaces:
TrustStoreDescriptor,TrustStoreDescriptor.TrustStoreDescriptorBuilder
- Direct Known Subclasses:
KeyStoreDescriptorBuilderImpl
public class TrustStoreDescriptorBuilderImpl extends Object implements TrustStoreDescriptor.TrustStoreDescriptorBuilder
Implementation of the
KeyStoreDescriptor interface.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.security.TrustStoreDescriptor
TrustStoreDescriptor.TrustStoreDescriptorBuilder -
Constructor Summary
Constructors Constructor Description TrustStoreDescriptorBuilderImpl(File aStoreFile)Constructs aKeyStoreDescriptorwith the data required to access a keystore.TrustStoreDescriptorBuilderImpl(File aStoreFile, String aStorePassword)Constructs aKeyStoreDescriptorwith the data required to access a keystore.TrustStoreDescriptorBuilderImpl(File aStoreFile, StoreType aStoreType)Constructs aKeyStoreDescriptorwith the data required to access a keystore.TrustStoreDescriptorBuilderImpl(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()voidsetStoreFile(File aStoreFile)voidsetStorePassword(String aStorePassword)Sets the keysotre's password.voidsetStoreType(StoreType aStoreType)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.refcodes.security.TrustStoreDescriptor.TrustStoreDescriptorBuilder
withStoreFile, withStorePassword, withStoreType
-
Constructor Details
-
TrustStoreDescriptorBuilderImpl
Constructs aKeyStoreDescriptorwith the data required to access a keystore. TheStoreTypedefaults toStoreType.JKS.- Parameters:
aStoreFile- The keystoreFile.
-
TrustStoreDescriptorBuilderImpl
Constructs aKeyStoreDescriptorwith the data required to access a keystore. -
TrustStoreDescriptorBuilderImpl
Constructs aKeyStoreDescriptorwith the data required to access a keystore.- Parameters:
aStoreFile- The keystoreFile.aStorePassword- The keystore password.
-
TrustStoreDescriptorBuilderImpl
public TrustStoreDescriptorBuilderImpl(File aStoreFile, StoreType aStoreType, String aStorePassword)Constructs aKeyStoreDescriptorwith the data required to access a keystore.
-
-
Method Details
-
getStoreFile
- Specified by:
getStoreFilein interfaceTrustStoreDescriptor- Returns:
- The
KeyStoreFile.
-
setStoreFile
- Specified by:
setStoreFilein interfaceTrustStoreDescriptor.TrustStoreDescriptorBuilder- Parameters:
aStoreFile- TheKeyStoreFile.
-
getStoreType
- Specified by:
getStoreTypein interfaceTrustStoreDescriptor- Returns:
- The
KeyStore'sStoreType.
-
setStoreType
- Specified by:
setStoreTypein interfaceTrustStoreDescriptor.TrustStoreDescriptorBuilder- Parameters:
aStoreType- TheKeyStore'sStoreType.
-
getStorePassword
Retrieves the keysotre's password.- Specified by:
getStorePasswordin interfaceTrustStoreDescriptor- Returns:
- The
KeyStorepassword.
-
setStorePassword
Sets the keysotre's password.- Specified by:
setStorePasswordin interfaceTrustStoreDescriptor.TrustStoreDescriptorBuilder- Parameters:
aStorePassword- TheKeyStorepassword.
-