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
ConstructorsConstructorDescriptionVaultEncryptionResult(Ciphertext cipherText) CreateVaultEncryptionResultfor a successfully encryptedCiphertext.VaultEncryptionResult(VaultException exception) CreateVaultEncryptionResultfor an error during encryption. -
Method Summary
Methods inherited from class org.springframework.vault.support.AbstractResult
get, getCause, isSuccessful
-
Constructor Details
-
VaultEncryptionResult
CreateVaultEncryptionResultfor a successfully encryptedCiphertext.- Parameters:
cipherText- must not be null.
-
VaultEncryptionResult
CreateVaultEncryptionResultfor an error during encryption.- Parameters:
exception- must not be null.
-
-
Method Details
-
get0
- Specified by:
get0in classAbstractResult<Ciphertext>- Returns:
- the actual result if this result completed successfully.
-