Package org.forgerock.json.crypto.simple
Class SimpleKeyStoreSelector
java.lang.Object
org.forgerock.json.crypto.simple.SimpleKeyStoreSelector
- All Implemented Interfaces:
SimpleKeySelector
Simple implementation for selecting keys from a provided key store.
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleKeyStoreSelector(KeyStore keyStore, String password) Constructs a simple key store selector. -
Method Summary
-
Constructor Details
-
SimpleKeyStoreSelector
Constructs a simple key store selector.- Parameters:
keyStore- the key store to select keys from.password- the password to use to decrypt selected keys.
-
-
Method Details
-
select
Description copied from interface:SimpleKeySelectorSelects a key for the specified key alias.- Specified by:
selectin interfaceSimpleKeySelector- Parameters:
key- the alias of the key to select.- Returns:
- the selected key.
- Throws:
JsonCryptoException- if the specified key could not be selected.
-