CreateRole.Request |
CreateRole.Request.addBoundServiceAccountName(String serviceAccountName) |
Add a service account name able to access this role.
|
CreateRole.Request |
CreateRole.Request.addBoundServiceAccountNamespace(String serviceAccountNamespace) |
Add a namespace allowed to access this role.
|
CreateRole.Request |
CreateRole.Request.addTokenBoundCidr(String cidr) |
Add CIDR block.
|
CreateRole.Request |
CreateRole.Request.addTokenPolicy(String policy) |
Add a policy to encode on the generated token.
|
CreateRole.Request |
CreateRole.Request.audience(String audience) |
Optional Audience claim to verify in the JWT.
|
static CreateRole.Request |
CreateRole.Request.builder() |
Fluent API builder for configuring a request.
|
CreateRole.Request |
CreateRole.Request.roleName(String roleName) |
Name of the role to create.
|
CreateRole.Request |
CreateRole.Request.tokenExplicitMaxTtl(int ttl) |
If set, will encode an explicit max TTL onto the token.
|
CreateRole.Request |
CreateRole.Request.tokenMaxTtl(int ttl) |
The maximum lifetime for generated tokens.
|
CreateRole.Request |
CreateRole.Request.tokenNoDefaultPolicy(boolean noDefaultPolicy) |
If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in
token_policies.
|
CreateRole.Request |
CreateRole.Request.tokenNumUses(int numUses) |
The maximum number of times a generated token may be used (within its lifetime); 0 means unlimited.
|
CreateRole.Request |
CreateRole.Request.tokenPeriod(int period) |
The period, if any, to set on the token.
|
CreateRole.Request |
CreateRole.Request.tokenTtl(int ttl) |
The incremental lifetime for generated tokens.
|
CreateRole.Request |
CreateRole.Request.tokenType(String type) |
The type of token that should be generated.
|