Class VaultTokenRequest

java.lang.Object
org.springframework.vault.support.VaultTokenRequest

public class VaultTokenRequest extends Object
Value object to bind Vault HTTP Token API requests.
Author:
Mark Paluch
  • Method Details

    • builder

      Returns:
      a new VaultTokenRequest.VaultTokenRequestBuilder.
    • getId

      @Nullable public String getId()
      Returns:
      Id of the client token.
    • getPolicies

      public List<String> getPolicies()
      Returns:
      policies for the token.
    • getMeta

      public Map<String,String> getMeta()
      Returns:
      map of string to string valued metadata, passed through to the audit backends.
    • getNoParent

      public boolean getNoParent()
      Returns:
      true if the token should not have the parent.
    • getNoDefaultPolicy

      public boolean getNoDefaultPolicy()
      Returns:
      true if the default policy should not be be applied.
    • getRenewable

      public boolean getRenewable()
      Returns:
      true if then the token should be renewable.
    • getTtl

      @Nullable public String getTtl()
      Returns:
      TTL period of the token.
    • getExplicitMaxTtl

      @Nullable public String getExplicitMaxTtl()
      Returns:
      explicit TTL of the token.
    • getDisplayName

      public String getDisplayName()
      Returns:
      the display name.
    • getNumUses

      public int getNumUses()
      Returns:
      the number of allowed token uses.