クラス SecretDocument

java.lang.ObjectSE
org.springframework.vault.repository.convert.SecretDocument

public class SecretDocument extends ObjectSE
Vault と交換される前後のデータを含む Vault データベース交換オブジェクト。SecretDocument は、基本的に id と StringSE および ObjectSEMapSE として表される本体を持つオブジェクトです。from と Id および VaultResponse を作成できます。

シークレットドキュメントは、単純なプロパティ、listSE プロパティ、およびネストされたオブジェクトを MapSE として保持できます。

導入:
2.0
作成者:
Mark Paluch
  • コンストラクターの詳細

    • SecretDocument

      public SecretDocument()
      新しい空の SecretDocument を作成します。
    • SecretDocument

      public SecretDocument(MapSE<StringSE,ObjectSE> body)
      body mapSE を指定して新しい SecretDocument を作成します。
      パラメーター:
      body - null であってはなりません。
    • SecretDocument

      public SecretDocument(@Nullable StringSE id, MapSE<StringSE,ObjectSE> body)
      id および body mapSE を指定して、新しい SecretDocument を作成します。
      パラメーター:
      id - null の場合があります。
      body - null であってはなりません。
    • SecretDocument

      public SecretDocument(@Nullable StringSE id, @Nullable IntegerSE version, MapSE<StringSE,ObjectSE> body)
      id および body mapSE を指定して、新しい SecretDocument を作成します。
      パラメーター:
      id - null の場合があります。
      version - バージョン管理されたシークレットの場合、使用できない場合は null になる可能性があります。
      body - null であってはなりません。
      導入:
      2.4
    • SecretDocument

      public SecretDocument(StringSE id)
  • メソッドの詳細

    • from

      public static SecretDocument from(@Nullable StringSE id, VaultResponse vaultResponse)
      id および VaultResponse から SecretDocument を作成するファクトリメソッド。
      パラメーター:
      id - null であってはなりません。
      vaultResponse - null であってはなりません。
      戻り値:
      SecretDocument
    • getId

      public @Nullable StringSE getId()
      戻り値:
      識別子、または識別子が設定されていない場合は null。
    • getRequiredId

      public StringSE getRequiredId()
      必要な ID を返すか、ID が設定されていない場合は IllegalStateExceptionSE をスローします。
      戻り値:
      必要な ID。
      例外:
      IllegalStateExceptionSE - ID が設定されていない場合。
      導入:
      2.4
    • setId

      public void setId(@Nullable StringSE id)
      識別子の値を設定します。
      パラメーター:
      id - null の場合があります。
    • getVersion

      public @Nullable IntegerSE getVersion()
      戻り値:
      バージョン番号。存在しない場合は null になる可能性があります。
      導入:
      2.4
    • setVersion

      public void setVersion(@Nullable IntegerSE version)
      パラメーター:
      version -
      導入:
      2.4
    • getBody

      public MapSE<StringSE,ObjectSE> getBody()
      戻り値:
      この SecretDocument のボディ
    • get

      public @Nullable ObjectSE get(StringSE key)
      key によって機密ドキュメントから値を取得します。
      パラメーター:
      key - null であってはなりません。
      戻り値:
      値、または値が存在しない場合は null。
    • put

      public void put(StringSE key, ObjectSE value)
      機密ドキュメントに値を設定します。
      パラメーター:
      key - null であってはなりません。
      value - null であってはなりません。
    • equals

      public boolean equals(ObjectSE o)
      オーバーライド:
      クラス ObjectSEequalsSE 
    • hashCode

      public int hashCode()
      オーバーライド:
      クラス ObjectSEhashCode 
    • toString

      public StringSE toString()
      オーバーライド:
      クラス ObjectSEtoString