public interface SecretKeyRepository
| Modifier and Type | Method and Description |
|---|---|
SecretKey |
getKey(String name,
boolean create)
Returns the secret key for the specified key name
|
void |
saveKey(String name,
SecretKey key)
Saves the secret key in the repository, with the specified name
|
SecretKey getKey(String name, boolean create) throws CryptoException
name - the key's name in the repositorycreate - true to create new key if there's no key with the specified name in the repository.CryptoExceptionvoid saveKey(String name, SecretKey key) throws CryptoException
name - the key's name in the repositorykey - the key to saveCryptoExceptionCopyright © 2018 CrafterCMS. All rights reserved.