public interface KeyStoreBuilder<T>
Modifier and Type | Method and Description |
---|---|
String |
buildAlias(String alias)
Build an alias based on the input provided.
|
T |
credentialToKey(Credential credential)
Convert a credential to a key value.
|
Credential |
getKeyFromKeyStore(String alias, oracle.security.pki.OracleSecretStore secretStore)
Retrieves a key form a key store.
|
List<T> |
getKeysFromKeyStore(oracle.security.pki.OracleSecretStore secretStore)
Retrieves all the keys from the key store.
|
Credential |
keyToCredential(T key)
Converts a key to a credential.
|
void |
persistKeyToKeyStore(String alias, T key, oracle.security.pki.OracleSecretStore secretStore)
Saves a key to a key store.
|
void |
removeKeyFromKeyStore(String alias, oracle.security.pki.OracleSecretStore secretStore)
Removes a key form a key store.
|
String buildAlias(String alias)
alias
- base alias nameT credentialToKey(Credential credential)
credential
- the credentialList<T> getKeysFromKeyStore(oracle.security.pki.OracleSecretStore secretStore) throws FMWCredentialsException
secretStore
- the key store.FMWCredentialsException
- if an error occursCredential keyToCredential(T key) throws FMWCredentialsException
key
- the key to be convertedFMWCredentialsException
- if an error occursCredential getKeyFromKeyStore(String alias, oracle.security.pki.OracleSecretStore secretStore) throws FMWCredentialsException
alias
- the key to be retrievedsecretStore
- the key storeFMWCredentialsException
- if an error occursvoid persistKeyToKeyStore(String alias, T key, oracle.security.pki.OracleSecretStore secretStore) throws FMWCredentialsException
alias
- the key aliaskey
- the key to be storedsecretStore
- the store to be used in saving the keyFMWCredentialsException
- if an error occursvoid removeKeyFromKeyStore(String alias, oracle.security.pki.OracleSecretStore secretStore) throws FMWCredentialsException
alias
- the alias identifying the key to be removedsecretStore
- the store to be usedFMWCredentialsException
- if an error occurs