public class VaultTransformDecodeResult extends AbstractResult<TransformPlaintext>
Constructor and Description |
---|
VaultTransformDecodeResult(TransformPlaintext plaintext)
Create
VaultTransformDecodeResult for a successfully decrypted
TransformPlaintext . |
VaultTransformDecodeResult(VaultException exception)
Create
VaultTransformDecodeResult for an error during decryption. |
Modifier and Type | Method and Description |
---|---|
protected TransformPlaintext |
get0() |
String |
getAsString()
Return the result as
String or throw a VaultException if the
operation completed with an error. |
get, getCause, isSuccessful
public VaultTransformDecodeResult(TransformPlaintext plaintext)
VaultTransformDecodeResult
for a successfully decrypted
TransformPlaintext
.plaintext
- must not be null.public VaultTransformDecodeResult(VaultException exception)
VaultTransformDecodeResult
for an error during decryption.exception
- must not be null.@Nullable protected TransformPlaintext get0()
get0
in class AbstractResult<TransformPlaintext>
@Nullable public String getAsString()
String
or throw a VaultException
if the
operation completed with an error. Use AbstractResult.isSuccessful()
to verify the
success status of this result without throwing an exception.VaultException
- if the operation completed with an error.Copyright © 2016–2020 Pivotal Software, Inc.. All rights reserved.