Package codes.grow.packages.vault
Class AppRoleOptions.Builder
java.lang.Object
codes.grow.packages.vault.AppRoleOptions.Builder
- Enclosing class:
AppRoleOptions
Builder of
AppRoleOptions.-
Method Summary
Modifier and TypeMethodDescriptionbindSecretId(boolean bind) Requires a secret id at login (server default true).build()Builds the options.Sets the AppRole mount (defaultapprole).secretIdNumUses(int uses) Sets the uses of a secret id (0 = unlimited).secretIdTtl(Duration ttl) Sets the TTL of secret ids.tokenMaxTtl(Duration ttl) Sets the maximum TTL of issued tokens.tokenPolicies(String... policies) Sets the policies of issued tokens.Sets the TTL of issued tokens.Sets the token type:service,batchordefault.
-
Method Details
-
mount
Sets the AppRole mount (defaultapprole).- Parameters:
mount- mount path- Returns:
- this builder
-
tokenPolicies
Sets the policies of issued tokens.- Parameters:
policies- policy names- Returns:
- this builder
-
tokenTtl
Sets the TTL of issued tokens.- Parameters:
ttl- TTL- Returns:
- this builder
-
tokenMaxTtl
Sets the maximum TTL of issued tokens.- Parameters:
ttl- TTL- Returns:
- this builder
-
secretIdTtl
Sets the TTL of secret ids.- Parameters:
ttl- TTL- Returns:
- this builder
-
secretIdNumUses
Sets the uses of a secret id (0 = unlimited).- Parameters:
uses- uses- Returns:
- this builder
-
bindSecretId
Requires a secret id at login (server default true).- Parameters:
bind- flag- Returns:
- this builder
-
tokenType
Sets the token type:service,batchordefault.- Parameters:
tokenType- type- Returns:
- this builder
-
build
Builds the options.- Returns:
- the options
-