public class VaultTransformEncodeResult extends AbstractResult<TransformCiphertext>
Constructor and Description |
---|
VaultTransformEncodeResult(TransformCiphertext cipherText)
Create
VaultTransformEncodeResult for a successfully encrypted
TransformCiphertext . |
VaultTransformEncodeResult(VaultException exception)
Create
VaultTransformEncodeResult for an error during encryption. |
Modifier and Type | Method and Description |
---|---|
protected TransformCiphertext |
get0() |
String |
getAsString()
Return the result as
String or throw a VaultException if the
operation completed with an error. |
get, getCause, isSuccessful
public VaultTransformEncodeResult(TransformCiphertext cipherText)
VaultTransformEncodeResult
for a successfully encrypted
TransformCiphertext
.cipherText
- must not be null.public VaultTransformEncodeResult(VaultException exception)
VaultTransformEncodeResult
for an error during encryption.exception
- must not be null.@Nullable protected TransformCiphertext get0()
get0
in class AbstractResult<TransformCiphertext>
@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.