クラス TransformPlaintext
java.lang.ObjectSE
org.springframework.vault.support.TransformPlaintext
オプションの
VaultTransformContext
を含むプレーンテキストを表す値オブジェクト。平文はバイナリセーフとして byte[]
として表されます。- 導入:
- 2.3
- 作成者:
- Lauren Voswinkel
メソッドのサマリー
修飾子と型メソッド説明asString()
static TransformPlaintext
empty()
空のTransformPlaintext
を作成するファクトリメソッド。boolean
byte[]
int
hashCode()
static TransformPlaintext
of
(byte[] plaintext) バイトシーケンスからTransformPlaintext
を作成するファクトリメソッド。static TransformPlaintext
fromString
SE を使用してTransformPlaintext
を作成するファクトリメソッド。static TransformPlaintext
with
(VaultTransformContext context) 指定されたVaultTransformContext
に関連付けられたこのプレーンテキストから新しいTransformPlaintext
オブジェクトを作成します。
メソッドの詳細
empty
空のTransformPlaintext
を作成するファクトリメソッド。- 戻り値:
- 空の
TransformPlaintext
オブジェクト。
of
バイトシーケンスからTransformPlaintext
を作成するファクトリメソッド。- パラメーター:
plaintext
- 暗号化するプレーンテキストは null であってはなりません。- 戻り値:
plaintext
のTransformPlaintext
。
of
fromString
SE を使用してTransformPlaintext
を作成するファクトリメソッド。String
SE は、デフォルトのCharset
SE を使用してbyte
にエンコードされます。- パラメーター:
plaintext
- 暗号化するプレーンテキストは null であってはなりません。- 戻り値:
plaintext
のTransformPlaintext
。
of
- パラメーター:
plaintext
- 暗号化する平文。null であってはなりません。- 戻り値:
plaintext
のPlaintext
。
getPlaintext
public byte[] getPlaintext()getContext
with
指定されたVaultTransformContext
に関連付けられたこのプレーンテキストから新しいTransformPlaintext
オブジェクトを作成します。- パラメーター:
context
- コンテキストを変換します。- 戻り値:
- 新しい
TransformPlaintext
オブジェクト。
asString
asString
equals
hashCode
public int hashCode()