Class CreateAppRole.Request
- java.lang.Object
- 
- io.helidon.integrations.common.rest.ApiJsonBuilder<T>
- 
- io.helidon.integrations.common.rest.ApiJsonRequest<T>
- 
- io.helidon.integrations.vault.VaultRequest<CreateAppRole.Request>
- 
- io.helidon.integrations.vault.auths.approle.CreateAppRole.Request
 
 
 
 
- 
- All Implemented Interfaces:
- ApiRequest<CreateAppRole.Request>
 - Enclosing class:
- CreateAppRole
 
 public static class CreateAppRole.Request extends VaultRequest<CreateAppRole.Request> Request object. Can be configured with additional headers, query parameters etc.
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateAppRole.RequestaddSecretIdBoundCidr(String cidr)CIDR blocks; if set, specifies blocks of IP addresses which can perform the login operation.CreateAppRole.RequestaddTokenBoundCidr(String cidr)Token bound CIDR blocks.CreateAppRole.RequestaddTokenPolicy(String policy)Token policy to encode onto generated tokens.CreateAppRole.RequestbindSecretId(boolean bindSecretId)Require secret_id to be presented when logging in using this AppRole.static CreateAppRole.Requestbuilder()Fluent API builder for configuring a request.CreateAppRole.RequestroleName(String name)Name of the AppRole.CreateAppRole.RequestsecretIdNumUses(int numberOfUses)Number of times any particular SecretID can be used to fetch a token from this AppRole, after which the SecretID will expire.CreateAppRole.RequestsecretIdTtl(Duration ttl)Duration after which the secret id expires.CreateAppRole.RequesttokenExplicitMaxTtl(Duration duration)If set, will encode an explicit max TTL onto the token.CreateAppRole.RequesttokenNoDefaultPolicy(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.CreateAppRole.RequesttokenNumUses(int numUses)The maximum number of times a generated token may be used (within its lifetime); 0 means unlimited.CreateAppRole.RequesttokenPeriod(int period)Period to use on the token.CreateAppRole.RequesttokenType(String tokenType)The type of token that should be generated.- 
Methods inherited from class io.helidon.integrations.vault.VaultRequestadd, addCommaDelimitedArray, addToCommaDelimitedArray, durationToTtl, preBuild
 - 
Methods inherited from class io.helidon.integrations.common.rest.ApiJsonRequestaddHeader, addQueryParam, headers, queryParams, requestId, requestId, requestMediaType, requestMediaType, responseMediaType, responseMediaType
 - 
Methods inherited from class io.helidon.integrations.common.rest.ApiJsonBuilderadd, add, add, add, add, add, addBase64, addToArray, addToArray, addToArray, addToArray, addToArray, addToArray, addToObject, addToObject, addToObject, addToObject, addToObject, emptyArray, me, postBuild, toJson
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface io.helidon.integrations.common.rest.ApiRequesttoJson
 
- 
 
- 
- 
- 
Method Detail- 
builderpublic static CreateAppRole.Request builder() Fluent API builder for configuring a request. The request builder is passed as is, without a build method. The equivalent of a build method isApiJsonBuilder.toJson(javax.json.JsonBuilderFactory)used by theRestApi.- Returns:
- new request builder
 
 - 
roleNamepublic CreateAppRole.Request roleName(String name) Name of the AppRole.- Parameters:
- name- AppRole name
- Returns:
- updated request
 
 - 
bindSecretIdpublic CreateAppRole.Request bindSecretId(boolean bindSecretId) Require secret_id to be presented when logging in using this AppRole.- Parameters:
- bindSecretId- whether to bind secret id
- Returns:
- updated request
 
 - 
addSecretIdBoundCidrpublic CreateAppRole.Request addSecretIdBoundCidr(String cidr) CIDR blocks; if set, specifies blocks of IP addresses which can perform the login operation.- Parameters:
- cidr- CIDR block
- Returns:
- updated request
 
 - 
secretIdNumUsespublic CreateAppRole.Request secretIdNumUses(int numberOfUses) Number of times any particular SecretID can be used to fetch a token from this AppRole, after which the SecretID will expire. A value of zero will allow unlimited uses.- Parameters:
- numberOfUses- number of uses
- Returns:
- updated request
 
 - 
secretIdTtlpublic CreateAppRole.Request secretIdTtl(Duration ttl) Duration after which the secret id expires.- Parameters:
- ttl- time to live
- Returns:
- updated request
 
 - 
addTokenPolicypublic CreateAppRole.Request addTokenPolicy(String policy) Token policy to encode onto generated tokens.- Parameters:
- policy- policy name
- Returns:
- updated request
 
 - 
addTokenBoundCidrpublic CreateAppRole.Request addTokenBoundCidr(String cidr) Token bound CIDR blocks. If set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.- Parameters:
- cidr- CIDR block
- Returns:
- updated request
 
 - 
tokenExplicitMaxTtlpublic CreateAppRole.Request tokenExplicitMaxTtl(Duration duration) If set, will encode an explicit max TTL onto the token. This is a hard cap even if token_ttl and token_max_ttl would otherwise allow a renewal.- Parameters:
- duration- time to live
- Returns:
- updated request
 
 - 
tokenNoDefaultPolicypublic CreateAppRole.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.- Parameters:
- noDefaultPolicy- whether to disable default policy
- Returns:
- updated request
 
 - 
tokenNumUsespublic CreateAppRole.Request tokenNumUses(int numUses) The maximum number of times a generated token may be used (within its lifetime); 0 means unlimited. If you require the token to have the ability to create child tokens, you will need to set this value to 0.- Parameters:
- numUses- number of uses
- Returns:
- updated request
 
 - 
tokenPeriodpublic CreateAppRole.Request tokenPeriod(int period) Period to use on the token. See Period- Parameters:
- period- period to use
- Returns:
- updated request
 
 - 
tokenTypepublic CreateAppRole.Request tokenType(String tokenType) The type of token that should be generated. Can be service, batch, or default to use the mount's tuned default (which unless changed will be service tokens). For token store roles, there are two additional possibilities: default-service and default-batch which specify the type to return unless the client requests a different type at generation time.- Parameters:
- tokenType- token type to use
- Returns:
- updated request
 
 
- 
 
-