public interface KeyProvider
Modifier and Type | Method and Description |
---|---|
KeyInfo |
currentKey()
Gets the current key to use for signature or encryption operations.
|
Optional<Key> |
retrieveKey(String id)
Retrieves a key to use for signature validation or decryption operations.
|
KeyInfo currentKey() throws KeyProviderException
KeyProviderException
- if an error occurs in obtaining the keyOptional<Key> retrieveKey(String id) throws KeyProviderException
id
- ID of the key to retrieve; if null
, the return value is
effectively the same as Optional.of(currentKey().key()
.KeyProviderException
- if an error occurs in obtaining the keyCopyright © 2019. All rights reserved.