public class RepositoryBasedKeyProvider extends Object implements KeyProvider
KeyRepository,
KeyNameObfuscator| Constructor and Description |
|---|
RepositoryBasedKeyProvider(KeyRepository keyRepository,
KeyNameObfuscator keyNameObfuscator) |
| Modifier and Type | Method and Description |
|---|---|
Optional<byte[]> |
getKey(byte[] keyRef)
Retrieve the key on the key repository.
|
public RepositoryBasedKeyProvider(KeyRepository keyRepository, KeyNameObfuscator keyNameObfuscator)
keyRepository - the repository for retrieving keyskeyNameObfuscator - KeyNameObfuscator used to unobfuscate the keyNamepublic Optional<byte[]> getKey(byte[] keyRef)
getKey in interface KeyProviderkeyRef - the reference of the key to retrieveCopyright © 2018. All rights reserved.