public abstract class FileKeyManager extends java.lang.Object implements KeyManager
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
log |
| Constructor and Description |
|---|
FileKeyManager() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getDirectory(java.lang.String type,
java.lang.String tempSubDir)
Method that returns configured directory for storing using keys.
|
protected static java.lang.String |
getDirectory(java.lang.String configPath,
java.lang.String type,
java.lang.String tempSubDir) |
protected abstract java.lang.String |
getKeyStorePath()
Returns the path of directory where key files are stored.
|
protected abstract java.lang.String |
getProtectPassphrase()
Method to retrieve the configured pass phrase used to protect generated keys.
|
protected char[] |
getProtectPassphraseWithDefault()
Help method that sets a default pass phrase if not configured with a warning log entry.
|
java.lang.String |
getProvider(Context context)
Method to return the Security Provider to use in given context.
|
public java.lang.String getProvider(Context context)
getProvider in interface KeyManagercontext - the related contextprotected abstract java.lang.String getKeyStorePath()
throws InternalErrorException
InternalErrorException - if internal error occurred retrieving the key store path.protected abstract java.lang.String getProtectPassphrase()
throws InternalErrorException
InternalErrorException - if internal error occurred retrieving configuration.protected char[] getProtectPassphraseWithDefault()
throws InternalErrorException
InternalErrorException - if internal error occurred retrieving configuration.protected java.lang.String getDirectory(java.lang.String type,
java.lang.String tempSubDir)
throws InternalErrorException
type - display name of path used for logging purposes.tempSubDir - the sub directory used if config path is null and temporary directory
should be used.InternalErrorException - if internal problems occured.protected static java.lang.String getDirectory(java.lang.String configPath,
java.lang.String type,
java.lang.String tempSubDir)
throws InternalErrorException
InternalErrorException