Class VaultTokenRequest
java.lang.Object
org.springframework.vault.support.VaultTokenRequest
Value object to bind Vault HTTP Token API requests.
- Author:
- Mark Paluch, Nanne Baars
-
Nested Class Summary
-
Method Summary
-
Method Details
-
builder
- Returns:
- a new
VaultTokenRequest.VaultTokenRequestBuilder
.
-
empty
- Returns:
- an empty token request.
- Since:
- 3.1
-
getId
- Returns:
- Id of the client token.
-
getPolicies
- Returns:
- policies for the token.
-
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
- Returns:
- TTL period of the token.
-
getExplicitMaxTtl
- Returns:
- explicit TTL of the token.
-
getDisplayName
- Returns:
- the display name.
-
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.
-