Direct Known Subclasses:
CreateToken.Response, RenewToken.Response

public abstract class TokenResponse extends VaultResponse
Response returning a token.
  • Constructor Details

  • Method Details

    • token

      public VaultToken token()
      Token that was received.
      Returns:
      the token
    • accessor

      public String accessor()
      Accessor.
      Returns:
      accessor
    • policies

      public List<String> policies()
      List of policy names.
      Returns:
      policies
    • tokenPolicies

      public List<String> tokenPolicies()
      List of token policy names.
      Returns:
      token policies
    • metadata

      public Map<String,String> metadata()
      Metadata. When a token is created with metadata attached, it is available through this method.
      Returns:
      key/values of metadata
    • entityId

      public String entityId()
      Entity id.
      Returns:
      entity id
    • tokenType

      public String tokenType()
      Type of the token.
      Returns:
      token type
      See Also:
    • orphan

      public boolean orphan()
      Whether the token is orphan (no parent).
      Returns:
      true if orphan