Package org.craftercms.commons.crypto
Interface SecretKeyRepository
- All Known Implementing Classes:
SecretKeyRepositoryImpl
public interface SecretKeyRepository
Repository for storing/retrieving encryption keys.
- Author:
- avasquez
-
Method Summary
-
Method Details
-
getKey
Returns the secret key for the specified key name- Parameters:
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.- Returns:
- the key
- Throws:
CryptoException
-
saveKey
Saves the secret key in the repository, with the specified name- Parameters:
name
- the key's name in the repositorykey
- the key to save- Throws:
CryptoException
-