Class AesVaultCryptoUtilities
java.lang.Object
dev.getelements.elements.service.blockchain.crypto.AesVaultCryptoUtilities
- All Implemented Interfaces:
VaultCryptoUtilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecryptKey
(VaultKey vaultKey, String passphrase) Returns theVaultKey
unencrypted.encryptKey
(VaultKey vaultKey, String passphrase) Encrypts the suppliedVaultKey
with the supplied passphrase.generateKey
(PrivateKeyCrytpoAlgorithm algorithm) Generates aVaultKey
, unencrypted.com.fasterxml.jackson.databind.ObjectMapper
jakarta.validation.Validator
void
setCryptoKeyPairUtility
(CryptoKeyPairUtility cryptoKeyPairUtility) void
setObjectMapper
(com.fasterxml.jackson.databind.ObjectMapper objectMapper) void
setValidator
(jakarta.validation.Validator validator) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.getelements.elements.sdk.service.blockchain.crypto.VaultCryptoUtilities
generateKey, reEncryptKey
-
Constructor Details
-
AesVaultCryptoUtilities
public AesVaultCryptoUtilities()
-
-
Method Details
-
generateKey
Description copied from interface:VaultCryptoUtilities
Generates aVaultKey
, unencrypted.- Specified by:
generateKey
in interfaceVaultCryptoUtilities
- Returns:
- the
VaultKey
-
encryptKey
Description copied from interface:VaultCryptoUtilities
Encrypts the suppliedVaultKey
with the supplied passphrase.- Specified by:
encryptKey
in interfaceVaultCryptoUtilities
- Parameters:
vaultKey
- theVaultKey
, must not be encryptedpassphrase
- the passphrase.- Returns:
- the encrypted key
-
decryptKey
Description copied from interface:VaultCryptoUtilities
Returns theVaultKey
unencrypted.- Specified by:
decryptKey
in interfaceVaultCryptoUtilities
- Parameters:
vaultKey
- the vault keypassphrase
- the passphrase- Returns:
- an
Optional<VaultKey>
, or null.
-
getValidator
public jakarta.validation.Validator getValidator() -
setValidator
@Inject public void setValidator(jakarta.validation.Validator validator) -
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
setObjectMapper
@Inject public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
getCryptoKeyPairUtility
-
setCryptoKeyPairUtility
-