Uses of Class
Token authentication method for Vault.
Modifier and TypeMethodDescriptionf set, specifies the entity aliases which are allowed to be used during token generation.If set, tokens can be created with any subset of the policies in this list, rather than the normal semantics of tokens being a subset of the calling token's policies.If set, successful token creation via this role will require that no policies in the given list are requested.List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
builder()Fluent API builder for configuring a request.CreateTokenRole.Request.
(boolean orphan)If true, tokens created against this policy will be orphan tokens (they will have no parent).If set, tokens created against this role will have the given suffix as part of their path in addition to the role name.CreateTokenRole.Request.
(boolean renewable)Set to false to disable the ability of the token to be renewed past its initial TTL.The name of the token role.If set, will encode an explicit max TTL onto the token.CreateTokenRole.Request.
(boolean noDefaultPolicy)If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in
(int uses)The maximum number of times a generated token may be used (within its lifetime); 0 means unlimited.CreateTokenRole.Request.
(int period)The period, if any, to set on the token.The type of token that should be generated.