Interface VaultCryptoUtilities
- All Known Implementing Classes:
AesVaultCryptoUtilities
public interface VaultCryptoUtilities
Encrypts and decrypts
Vault
s.-
Method Summary
Modifier and TypeMethodDescriptiondecryptKey
(VaultKey key, String passphrase) Returns theVaultKey
unencrypted.encryptKey
(VaultKey vaultKey, String passphrase) Encrypts the suppliedVaultKey
with the supplied passphrase.generateKey
(PrivateKeyCrytpoAlgorithm algorithm) Generates aVaultKey
, unencrypted.default VaultKey
generateKey
(PrivateKeyCrytpoAlgorithm algorithm, String passphrase) Generates aVaultKey
secured with the supplied passphrase.reEncryptKey
(VaultKey key, String passphrase, String newPassphrase) Re-encrypts theVaultKey
with the supplied passphrase.
-
Method Details
-
generateKey
Generates aVaultKey
, unencrypted.- Returns:
- the
VaultKey
-
generateKey
Generates aVaultKey
secured with the supplied passphrase.- Parameters:
passphrase
- the passphrase- Returns:
- the
VaultKey
, encrypted
-
encryptKey
Encrypts the suppliedVaultKey
with the supplied passphrase.- Parameters:
vaultKey
- theVaultKey
, must not be encryptedpassphrase
- the passphrase.- Returns:
- the encrypted key
-
reEncryptKey
Re-encrypts theVaultKey
with the supplied passphrase. -
decryptKey
Returns theVaultKey
unencrypted.
-