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