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 theKeyStoreDescriptor
interface.
-
-
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 aKeyStoreDescriptor
with the data required to access a keystore.TrustStoreDescriptorBuilderImpl(java.io.File aStoreFile, java.lang.String aStorePassword)
Constructs aKeyStoreDescriptor
with the data required to access a keystore.TrustStoreDescriptorBuilderImpl(java.io.File aStoreFile, StoreType aStoreType)
Constructs aKeyStoreDescriptor
with the data required to access a keystore.TrustStoreDescriptorBuilderImpl(java.io.File aStoreFile, StoreType aStoreType, java.lang.String aStorePassword)
Constructs aKeyStoreDescriptor
with the data required to access a keystore.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
getStoreFile()
Retrieves theFile
pointing to theKeyStore
.java.lang.String
getStorePassword()
Retrieves the keysotre's password.StoreType
getStoreType()
Retrieves theStoreType
representing the type of theKeyStore
.void
setStoreFile(java.io.File aStoreFile)
Sets theFile
pointing to theKeyStore
.void
setStorePassword(java.lang.String aStorePassword)
Sets the keysotre's password.void
setStoreType(StoreType aStoreType)
Sets theStoreType
representing 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 aKeyStoreDescriptor
with the data required to access a keystore. TheStoreType
defaults toStoreType.JKS
.- Parameters:
aStoreFile
- The keystoreFile
.
-
TrustStoreDescriptorBuilderImpl
public TrustStoreDescriptorBuilderImpl(java.io.File aStoreFile, StoreType aStoreType)
Constructs aKeyStoreDescriptor
with 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 aKeyStoreDescriptor
with 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 aKeyStoreDescriptor
with 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 theFile
pointing to theKeyStore
.- Specified by:
getStoreFile
in interfaceTrustStoreDescriptor
- Returns:
- The
KeyStore
File
.
-
setStoreFile
public void setStoreFile(java.io.File aStoreFile)
Sets theFile
pointing to theKeyStore
.- Specified by:
setStoreFile
in interfaceTrustStoreDescriptor.TrustStoreDescriptorBuilder
- Parameters:
aStoreFile
- TheKeyStore
File
.
-
getStoreType
public StoreType getStoreType()
Retrieves theStoreType
representing the type of theKeyStore
.- Specified by:
getStoreType
in interfaceTrustStoreDescriptor
- Returns:
- The
KeyStore
'sStoreType
.
-
setStoreType
public void setStoreType(StoreType aStoreType)
Sets theStoreType
representing the type of theKeyStore
.- Specified by:
setStoreType
in interfaceTrustStoreDescriptor.TrustStoreDescriptorBuilder
- Parameters:
aStoreType
- TheKeyStore
'sStoreType
.
-
getStorePassword
public java.lang.String getStorePassword()
Retrieves the keysotre's password.- Specified by:
getStorePassword
in interfaceTrustStoreDescriptor
- Returns:
- The
KeyStore
password.
-
setStorePassword
public void setStorePassword(java.lang.String aStorePassword)
Sets the keysotre's password.- Specified by:
setStorePassword
in interfaceTrustStoreDescriptor.TrustStoreDescriptorBuilder
- Parameters:
aStorePassword
- TheKeyStore
password.
-
-