Package org.refcodes.security
Class KeyStoreDescriptorImpl
- java.lang.Object
-
- org.refcodes.security.KeyStoreDescriptorImpl
-
- All Implemented Interfaces:
KeyStoreDescriptor,TrustStoreDescriptor
public class KeyStoreDescriptorImpl extends java.lang.Object implements KeyStoreDescriptor
The immutableKeyStoreDescriptorImplimplements theTrustStoreDescriptorinterface.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.security.KeyStoreDescriptor
KeyStoreDescriptor.KeyStoreDescriptorBuilder
-
Nested classes/interfaces inherited from interface org.refcodes.security.TrustStoreDescriptor
TrustStoreDescriptor.TrustStoreDescriptorBuilder
-
-
Constructor Summary
Constructors Constructor Description KeyStoreDescriptorImpl(java.io.File aStoreFile)Constructs aKeyStoreDescriptorwith the data required to access aKeyStore.KeyStoreDescriptorImpl(java.io.File aStoreFile, java.lang.String aStorePassword)Constructs aKeyStoreDescriptorwith the data required to access aKeyStore.KeyStoreDescriptorImpl(java.io.File aStoreFile, java.lang.String aStorePassword, java.lang.String aKeyPassword)Constructs aKeyStoreDescriptorwith the data required to access aKeyStore.KeyStoreDescriptorImpl(java.io.File aStoreFile, StoreType aStoreType)Constructs aKeyStoreDescriptorwith the data required to access aKeyStore.KeyStoreDescriptorImpl(java.io.File aStoreFile, StoreType aStoreType, java.lang.String aStorePassword)Constructs aKeyStoreDescriptorwith the data required to access aKeyStore.KeyStoreDescriptorImpl(java.io.File aStoreFile, StoreType aStoreType, java.lang.String aStorePassword, java.lang.String aKeyPassword)Constructs aKeyStoreDescriptorwith the data required to access aKeyStore.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetKeyPassword()Retrieves the key's password.java.io.FilegetStoreFile()Retrieves theFilepointing to theKeyStore.java.lang.StringgetStorePassword()Retrieves the keysotre's password.StoreTypegetStoreType()Retrieves theStoreTyperepresenting the type of theKeyStore.
-
-
-
Constructor Detail
-
KeyStoreDescriptorImpl
public KeyStoreDescriptorImpl(java.io.File aStoreFile)
Constructs aKeyStoreDescriptorwith the data required to access aKeyStore. TheStoreTypedefaults toStoreType.JKS.- Parameters:
aStoreFile- TheKeyStoreFile.
-
KeyStoreDescriptorImpl
public KeyStoreDescriptorImpl(java.io.File aStoreFile, StoreType aStoreType)Constructs aKeyStoreDescriptorwith the data required to access aKeyStore.- Parameters:
aStoreFile- TheKeyStoreFile.aStoreType- TheKeyStore'sStoreType.
-
KeyStoreDescriptorImpl
public KeyStoreDescriptorImpl(java.io.File aStoreFile, StoreType aStoreType, java.lang.String aStorePassword)Constructs aKeyStoreDescriptorwith the data required to access aKeyStore.- Parameters:
aStoreFile- TheKeyStoreFile.aStoreType- TheKeyStore'sStoreType.aStorePassword- TheKeyStorepassword.
-
KeyStoreDescriptorImpl
public KeyStoreDescriptorImpl(java.io.File aStoreFile, java.lang.String aStorePassword)Constructs aKeyStoreDescriptorwith the data required to access aKeyStore.- Parameters:
aStoreFile- TheKeyStoreFile.aStorePassword- TheKeyStorepassword.
-
KeyStoreDescriptorImpl
public KeyStoreDescriptorImpl(java.io.File aStoreFile, java.lang.String aStorePassword, java.lang.String aKeyPassword)Constructs aKeyStoreDescriptorwith the data required to access aKeyStore.- Parameters:
aStoreFile- TheKeyStoreFile.aStorePassword- TheKeyStorepassword.aKeyPassword- The key password.
-
KeyStoreDescriptorImpl
public KeyStoreDescriptorImpl(java.io.File aStoreFile, StoreType aStoreType, java.lang.String aStorePassword, java.lang.String aKeyPassword)Constructs aKeyStoreDescriptorwith the data required to access aKeyStore.- Parameters:
aStoreFile- TheKeyStoreFile.aStoreType- TheKeyStore'sStoreType.aStorePassword- TheKeyStorepassword.aKeyPassword- The key 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.
-
getKeyPassword
public java.lang.String getKeyPassword()
Retrieves the key's password.- Specified by:
getKeyPasswordin interfaceKeyStoreDescriptor- Returns:
- The key password.
-
-