Class VaultTransformDecodeResult
java.lang.Object
org.springframework.vault.support.AbstractResult<TransformPlaintext>
org.springframework.vault.support.VaultTransformDecodeResult
Holds the response from decryption operation and provides methods to access the result.
- Since:
 - 2.3
 - Author:
 - Lauren Voswinkel
 
- 
Constructor Summary
ConstructorsConstructorDescriptionVaultTransformDecodeResult(TransformPlaintext plaintext) CreateVaultTransformDecodeResultfor a successfully decryptedTransformPlaintext.VaultTransformDecodeResult(VaultException exception) CreateVaultTransformDecodeResultfor an error during decryption. - 
Method Summary
Modifier and TypeMethodDescriptionprotected TransformPlaintextget0()Return the result asStringor throw aVaultExceptionif the operation completed with an error.Methods inherited from class org.springframework.vault.support.AbstractResult
get, getCause, isSuccessful 
- 
Constructor Details
- 
VaultTransformDecodeResult
CreateVaultTransformDecodeResultfor a successfully decryptedTransformPlaintext.- Parameters:
 plaintext- must not be null.
 - 
VaultTransformDecodeResult
CreateVaultTransformDecodeResultfor an error during decryption.- Parameters:
 exception- must not be null.
 
 - 
 - 
Method Details
- 
get0
- Specified by:
 get0in classAbstractResult<TransformPlaintext>- Returns:
 - the actual result if this result completed successfully.
 
 - 
getAsString
Return the result asStringor throw aVaultExceptionif the operation completed with an error. UseAbstractResult.isSuccessful()to verify the success status of this result without throwing an exception.- Returns:
 - the result value.
 - Throws:
 VaultException- if the operation completed with an error.
 
 -