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 theVaultKeyunencrypted.encryptKey(VaultKey vaultKey, String passphrase) Encrypts the suppliedVaultKeywith the supplied passphrase.generateKey(PrivateKeyCrytpoAlgorithm algorithm) Generates aVaultKey, unencrypted.com.fasterxml.jackson.databind.ObjectMapperjakarta.validation.ValidatorvoidsetCryptoKeyPairUtility(CryptoKeyPairUtility cryptoKeyPairUtility) voidsetObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) voidsetValidator(jakarta.validation.Validator validator) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:VaultCryptoUtilitiesGenerates aVaultKey, unencrypted.- Specified by:
generateKeyin interfaceVaultCryptoUtilities- Returns:
- the
VaultKey
-
encryptKey
Description copied from interface:VaultCryptoUtilitiesEncrypts the suppliedVaultKeywith the supplied passphrase.- Specified by:
encryptKeyin interfaceVaultCryptoUtilities- Parameters:
vaultKey- theVaultKey, must not be encryptedpassphrase- the passphrase.- Returns:
- the encrypted key
-
decryptKey
Description copied from interface:VaultCryptoUtilitiesReturns theVaultKeyunencrypted.- Specified by:
decryptKeyin 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
-