Package org.refcodes.security
Class TrustStoreDescriptorImpl
- java.lang.Object
-
- org.refcodes.security.TrustStoreDescriptorImpl
-
- All Implemented Interfaces:
TrustStoreDescriptor
public class TrustStoreDescriptorImpl extends java.lang.Object implements TrustStoreDescriptor
The immutableTrustStoreDescriptorImpl
implements theTrustStoreDescriptor
interface.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.security.TrustStoreDescriptor
TrustStoreDescriptor.TrustStoreDescriptorBuilder
-
-
Constructor Summary
Constructors Constructor Description TrustStoreDescriptorImpl(java.io.File aStoreFile)
Constructs aKeyStoreDescriptor
with the data required to access a keystore.TrustStoreDescriptorImpl(java.io.File aStoreFile, java.lang.String aStorePassword)
Constructs aKeyStoreDescriptor
with the data required to access a keystore.TrustStoreDescriptorImpl(java.io.File aStoreFile, StoreType aStoreType)
Constructs aKeyStoreDescriptor
with the data required to access a keystore.TrustStoreDescriptorImpl(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
.
-
-
-
Constructor Detail
-
TrustStoreDescriptorImpl
public TrustStoreDescriptorImpl(java.io.File aStoreFile)
Constructs aKeyStoreDescriptor
with the data required to access a keystore. TheStoreType
defaults toStoreType.JKS
.- Parameters:
aStoreFile
- The keystoreFile
.
-
TrustStoreDescriptorImpl
public TrustStoreDescriptorImpl(java.io.File aStoreFile, StoreType aStoreType)
Constructs aKeyStoreDescriptor
with the data required to access a keystore.- Parameters:
aStoreFile
- The keystoreFile
.aStoreType
- The keystore'sStoreType
.
-
TrustStoreDescriptorImpl
public TrustStoreDescriptorImpl(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.
-
TrustStoreDescriptorImpl
public TrustStoreDescriptorImpl(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
.
-
getStoreType
public StoreType getStoreType()
Retrieves theStoreType
representing the type of theKeyStore
.- Specified by:
getStoreType
in interfaceTrustStoreDescriptor
- Returns:
- The
KeyStore
'sStoreType
.
-
getStorePassword
public java.lang.String getStorePassword()
Retrieves the keysotre's password.- Specified by:
getStorePassword
in interfaceTrustStoreDescriptor
- Returns:
- The
KeyStore
password.
-
-