- java.lang.Object
-
- io.github.mmm.crypto.key.store.KeyStoreConfig
-
- Direct Known Subclasses:
KeyStoreConfigJceks
,KeyStoreConfigJks
,KeyStoreConfigPkcs12
public class KeyStoreConfig extends Object
Configuration forKeyStoreFacade
.
Additional proprietary configs:- "Windows-MY" / "SunMSCAPI"
- "KeychainStore" / "Apple"
- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description KeyStoreConfig(String type, CryptoResource resource, String password)
The constructor.KeyStoreConfig(String type, SecurityProvider provider, CryptoResource resource, String password)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getExtension()
String
getPassword()
SecurityProvider
getProvider()
CryptoResource
getResource()
String
getType()
-
-
-
Constructor Detail
-
KeyStoreConfig
public KeyStoreConfig(String type, CryptoResource resource, String password)
The constructor.
-
KeyStoreConfig
public KeyStoreConfig(String type, SecurityProvider provider, CryptoResource resource, String password)
The constructor.- Parameters:
type
- thetype
.provider
- theSecurityProvider
.resource
- theresource
.password
- thepassword
.
-
-
Method Detail
-
getExtension
public String getExtension()
- Returns:
- the (default) file extension for the keystore.
-
getType
public String getType()
-
getProvider
public SecurityProvider getProvider()
- Returns:
- the
SecurityProvider
.
-
getResource
public CryptoResource getResource()
- Returns:
- resource the
CryptoResource
to read/write theKeyStore
from/to. - See Also:
KeyStore.load(java.io.InputStream, char[])
,KeyStore.store(java.io.OutputStream, char[])
-
getPassword
public String getPassword()
- Returns:
- the password used to protect the
KeyStore
. - See Also:
KeyStore.load(java.io.InputStream, char[])
,KeyStore.store(java.io.OutputStream, char[])
-
-