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 immutableKeyStoreDescriptorImpl
implements theTrustStoreDescriptor
interface.
-
-
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 aKeyStoreDescriptor
with the data required to access aKeyStore
.KeyStoreDescriptorImpl(java.io.File aStoreFile, java.lang.String aStorePassword)
Constructs aKeyStoreDescriptor
with the data required to access aKeyStore
.KeyStoreDescriptorImpl(java.io.File aStoreFile, java.lang.String aStorePassword, java.lang.String aKeyPassword)
Constructs aKeyStoreDescriptor
with the data required to access aKeyStore
.KeyStoreDescriptorImpl(java.io.File aStoreFile, StoreType aStoreType)
Constructs aKeyStoreDescriptor
with the data required to access aKeyStore
.KeyStoreDescriptorImpl(java.io.File aStoreFile, StoreType aStoreType, java.lang.String aStorePassword)
Constructs aKeyStoreDescriptor
with the data required to access aKeyStore
.KeyStoreDescriptorImpl(java.io.File aStoreFile, StoreType aStoreType, java.lang.String aStorePassword, java.lang.String aKeyPassword)
Constructs aKeyStoreDescriptor
with the data required to access aKeyStore
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getKeyPassword()
Retrieves the key's password.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
-
KeyStoreDescriptorImpl
public KeyStoreDescriptorImpl(java.io.File aStoreFile)
Constructs aKeyStoreDescriptor
with the data required to access aKeyStore
. TheStoreType
defaults toStoreType.JKS
.- Parameters:
aStoreFile
- TheKeyStore
File
.
-
KeyStoreDescriptorImpl
public KeyStoreDescriptorImpl(java.io.File aStoreFile, StoreType aStoreType)
Constructs aKeyStoreDescriptor
with the data required to access aKeyStore
.- Parameters:
aStoreFile
- TheKeyStore
File
.aStoreType
- TheKeyStore
'sStoreType
.
-
KeyStoreDescriptorImpl
public KeyStoreDescriptorImpl(java.io.File aStoreFile, StoreType aStoreType, java.lang.String aStorePassword)
Constructs aKeyStoreDescriptor
with the data required to access aKeyStore
.- Parameters:
aStoreFile
- TheKeyStore
File
.aStoreType
- TheKeyStore
'sStoreType
.aStorePassword
- TheKeyStore
password.
-
KeyStoreDescriptorImpl
public KeyStoreDescriptorImpl(java.io.File aStoreFile, java.lang.String aStorePassword)
Constructs aKeyStoreDescriptor
with the data required to access aKeyStore
.- Parameters:
aStoreFile
- TheKeyStore
File
.aStorePassword
- TheKeyStore
password.
-
KeyStoreDescriptorImpl
public KeyStoreDescriptorImpl(java.io.File aStoreFile, java.lang.String aStorePassword, java.lang.String aKeyPassword)
Constructs aKeyStoreDescriptor
with the data required to access aKeyStore
.- Parameters:
aStoreFile
- TheKeyStore
File
.aStorePassword
- TheKeyStore
password.aKeyPassword
- The key password.
-
KeyStoreDescriptorImpl
public KeyStoreDescriptorImpl(java.io.File aStoreFile, StoreType aStoreType, java.lang.String aStorePassword, java.lang.String aKeyPassword)
Constructs aKeyStoreDescriptor
with the data required to access aKeyStore
.- Parameters:
aStoreFile
- TheKeyStore
File
.aStoreType
- TheKeyStore
'sStoreType
.aStorePassword
- TheKeyStore
password.aKeyPassword
- The key 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.
-
getKeyPassword
public java.lang.String getKeyPassword()
Retrieves the key's password.- Specified by:
getKeyPassword
in interfaceKeyStoreDescriptor
- Returns:
- The key password.
-
-