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 immutableTrustStoreDescriptorImplimplements theTrustStoreDescriptorinterface.
-
-
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 aKeyStoreDescriptorwith the data required to access a keystore.TrustStoreDescriptorImpl(java.io.File aStoreFile, java.lang.String aStorePassword)Constructs aKeyStoreDescriptorwith the data required to access a keystore.TrustStoreDescriptorImpl(java.io.File aStoreFile, StoreType aStoreType)Constructs aKeyStoreDescriptorwith the data required to access a keystore.TrustStoreDescriptorImpl(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.
-
-
-
Constructor Detail
-
TrustStoreDescriptorImpl
public TrustStoreDescriptorImpl(java.io.File aStoreFile)
Constructs aKeyStoreDescriptorwith the data required to access a keystore. TheStoreTypedefaults toStoreType.JKS.- Parameters:
aStoreFile- The keystoreFile.
-
TrustStoreDescriptorImpl
public TrustStoreDescriptorImpl(java.io.File aStoreFile, StoreType aStoreType)Constructs aKeyStoreDescriptorwith 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 aKeyStoreDescriptorwith 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 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.
-
getStoreType
public StoreType getStoreType()
Retrieves theStoreTyperepresenting the type of theKeyStore.- Specified by:
getStoreTypein interfaceTrustStoreDescriptor- Returns:
- The
KeyStore'sStoreType.
-
getStorePassword
public java.lang.String getStorePassword()
Retrieves the keysotre's password.- Specified by:
getStorePasswordin interfaceTrustStoreDescriptor- Returns:
- The
KeyStorepassword.
-
-