クラス VaultTransformEncodeResult
java.lang.ObjectSE
org.springframework.vault.support.AbstractResult<TransformCiphertext>
org.springframework.vault.support.VaultTransformEncodeResult
暗号化操作からのレスポンスを保持し、結果にアクセスする方法を提供します。
- 導入:
- 2.3
- 作成者:
- Lauren Voswinkel
コンストラクターの概要
コンストラクターコンストラクター説明VaultTransformEncodeResult(TransformCiphertext cipherText) 正常に暗号化されたTransformCiphertextのVaultTransformEncodeResultを作成します。VaultTransformEncodeResult(VaultException exception) 暗号化中のエラーに対してVaultTransformEncodeResultを作成します。方法の概要
修飾子と型メソッド説明protected @Nullable TransformCiphertextget0()@Nullable StringSE結果をStringSE として返すか、操作がエラーで完了した場合はVaultExceptionをスローします。クラス org.springframework.vault.support.AbstractResult から継承されたメソッド
get, getCause, isSuccessful
コンストラクターの詳細
VaultTransformEncodeResult
正常に暗号化されたTransformCiphertextのVaultTransformEncodeResultを作成します。- パラメーター:
cipherText- null であってはなりません。
VaultTransformEncodeResult
暗号化中のエラーに対してVaultTransformEncodeResultを作成します。- パラメーター:
exception- null であってはなりません。
メソッドの詳細
get0
- 次で指定:
- クラス
AbstractResult<TransformCiphertext>のget0 - 戻り値:
- この結果が正常に完了した場合の実際の結果。
getAsString
結果をStringSE として返すか、操作がエラーで完了した場合はVaultExceptionをスローします。AbstractResult.isSuccessful()を使用して、例外をスローせずにこの結果の成功ステータスを確認します。- 戻り値:
- 結果値。
- 例外:
VaultException- 操作がエラーで完了した場合。