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, Nanne Baars
  • Method Details

    • builder

      Returns:
      a new VaultTokenRequest.VaultTokenRequestBuilder.
    • empty

      public static VaultTokenRequest empty()
      Returns:
      an empty token request.
      Since:
      3.1
    • 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.
    • getEntityAlias

      public String getEntityAlias()
      Returns:
      then name of the entity alias to associate with during token creation. Only works in combination with role name.
      Since:
      3.1
    • getNumUses

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