Class VaultEncryptionResult
java.lang.Object
org.springframework.vault.support.AbstractResult<Ciphertext>
org.springframework.vault.support.VaultEncryptionResult
Holds the response from encryption operation and provides methods to access the result.
- Since:
- 1.1
- Author:
- Praveendra Singh, Mark Paluch
-
Constructor Summary
ConstructorDescriptionVaultEncryptionResult
(Ciphertext cipherText) CreateVaultEncryptionResult
for a successfully encryptedCiphertext
.VaultEncryptionResult
(VaultException exception) CreateVaultEncryptionResult
for an error during encryption. -
Method Summary
Methods inherited from class org.springframework.vault.support.AbstractResult
get, getCause, isSuccessful
-
Constructor Details
-
VaultEncryptionResult
CreateVaultEncryptionResult
for a successfully encryptedCiphertext
.- Parameters:
cipherText
- must not be null.
-
VaultEncryptionResult
CreateVaultEncryptionResult
for an error during encryption.- Parameters:
exception
- must not be null.
-
-
Method Details
-
get0
- Specified by:
get0
in classAbstractResult<Ciphertext>
- Returns:
- the actual result if this result completed successfully.
-