Package org.refcodes.security
Class TrustStoreDescriptorBuilderImpl
- java.lang.Object
-
- org.refcodes.security.TrustStoreDescriptorBuilderImpl
-
- All Implemented Interfaces:
TrustStoreDescriptor,TrustStoreDescriptor.TrustStoreDescriptorBuilder
- Direct Known Subclasses:
KeyStoreDescriptorBuilderImpl
public class TrustStoreDescriptorBuilderImpl extends java.lang.Object implements TrustStoreDescriptor.TrustStoreDescriptorBuilder
Implementation of theKeyStoreDescriptorinterface.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.security.TrustStoreDescriptor
TrustStoreDescriptor.TrustStoreDescriptorBuilder
-
-
Constructor Summary
Constructors Constructor Description TrustStoreDescriptorBuilderImpl(java.io.File aStoreFile)Constructs aKeyStoreDescriptorwith the data required to access a keystore.TrustStoreDescriptorBuilderImpl(java.io.File aStoreFile, java.lang.String aStorePassword)Constructs aKeyStoreDescriptorwith the data required to access a keystore.TrustStoreDescriptorBuilderImpl(java.io.File aStoreFile, StoreType aStoreType)Constructs aKeyStoreDescriptorwith the data required to access a keystore.TrustStoreDescriptorBuilderImpl(java.io.File aStoreFile, StoreType aStoreType, java.lang.String aStorePassword)Constructs aKeyStoreDescriptorwith the data required to access a keystore.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.FilegetStoreFile()Retrieves theFilepointing to theKeyStore.java.lang.StringgetStorePassword()Retrieves the keysotre's password.StoreTypegetStoreType()Retrieves theStoreTyperepresenting the type of theKeyStore.voidsetStoreFile(java.io.File aStoreFile)Sets theFilepointing to theKeyStore.voidsetStorePassword(java.lang.String aStorePassword)Sets the keysotre's password.voidsetStoreType(StoreType aStoreType)Sets theStoreTyperepresenting the type of theKeyStore.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.refcodes.security.TrustStoreDescriptor.TrustStoreDescriptorBuilder
withStoreFile, withStorePassword, withStoreType
-
-
-
-
Constructor Detail
-
TrustStoreDescriptorBuilderImpl
public TrustStoreDescriptorBuilderImpl(java.io.File aStoreFile)
Constructs aKeyStoreDescriptorwith the data required to access a keystore. TheStoreTypedefaults toStoreType.JKS.- Parameters:
aStoreFile- The keystoreFile.
-
TrustStoreDescriptorBuilderImpl
public TrustStoreDescriptorBuilderImpl(java.io.File aStoreFile, StoreType aStoreType)Constructs aKeyStoreDescriptorwith the data required to access a keystore.- Parameters:
aStoreFile- The keystoreFile.aStoreType- The keystore'sStoreType.
-
TrustStoreDescriptorBuilderImpl
public TrustStoreDescriptorBuilderImpl(java.io.File aStoreFile, java.lang.String aStorePassword)Constructs aKeyStoreDescriptorwith the data required to access a keystore.- Parameters:
aStoreFile- The keystoreFile.aStorePassword- The keystore password.
-
TrustStoreDescriptorBuilderImpl
public TrustStoreDescriptorBuilderImpl(java.io.File aStoreFile, StoreType aStoreType, java.lang.String aStorePassword)Constructs aKeyStoreDescriptorwith the data required to access a keystore.- Parameters:
aStoreFile- The keystoreFile.aStoreType- The keystore'sStoreType.aStorePassword- The keystore password.
-
-
Method Detail
-
getStoreFile
public java.io.File getStoreFile()
Retrieves theFilepointing to theKeyStore.- Specified by:
getStoreFilein interfaceTrustStoreDescriptor- Returns:
- The
KeyStoreFile.
-
setStoreFile
public void setStoreFile(java.io.File aStoreFile)
Sets theFilepointing to theKeyStore.- Specified by:
setStoreFilein interfaceTrustStoreDescriptor.TrustStoreDescriptorBuilder- Parameters:
aStoreFile- TheKeyStoreFile.
-
getStoreType
public StoreType getStoreType()
Retrieves theStoreTyperepresenting the type of theKeyStore.- Specified by:
getStoreTypein interfaceTrustStoreDescriptor- Returns:
- The
KeyStore'sStoreType.
-
setStoreType
public void setStoreType(StoreType aStoreType)
Sets theStoreTyperepresenting the type of theKeyStore.- Specified by:
setStoreTypein interfaceTrustStoreDescriptor.TrustStoreDescriptorBuilder- Parameters:
aStoreType- TheKeyStore'sStoreType.
-
getStorePassword
public java.lang.String getStorePassword()
Retrieves the keysotre's password.- Specified by:
getStorePasswordin interfaceTrustStoreDescriptor- Returns:
- The
KeyStorepassword.
-
setStorePassword
public void setStorePassword(java.lang.String aStorePassword)
Sets the keysotre's password.- Specified by:
setStorePasswordin interfaceTrustStoreDescriptor.TrustStoreDescriptorBuilder- Parameters:
aStorePassword- TheKeyStorepassword.
-
-