public final class StaticKeyGeneratingKeyManager extends Object implements KeyManager
KeyManager
that generates the ManagedKey
(s) when constructed. NOTE: This implementation should ONLY be used during development/testing.
KeyManager
Constructor and Description |
---|
StaticKeyGeneratingKeyManager() |
Modifier and Type | Method and Description |
---|---|
Set<ManagedKey> | findByAlgorithm(String algorithm) |
ManagedKey | findByKeyId(String keyId) |
Set<ManagedKey> | getKeys() Returns a Set of the ManagedKey (s). |
public ManagedKey findByKeyId(String keyId)
KeyManager
findByKeyId
in interface KeyManager
keyId
- the key IDManagedKey
, or null
if not foundpublic Set<ManagedKey> findByAlgorithm(String algorithm)
KeyManager
findByAlgorithm
in interface KeyManager
algorithm
- the key algorithmSet
of ManagedKey
(s), or an empty Set
if not foundpublic Set<ManagedKey> getKeys()
KeyManager
Set
of the ManagedKey
(s).getKeys
in interface KeyManager
Set
of the ManagedKey
(s)