Package codes.grow.packages.vault
Class SecretIdOptions.Builder
java.lang.Object
codes.grow.packages.vault.SecretIdOptions.Builder
- Enclosing class:
SecretIdOptions
Builder of
SecretIdOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the options.Restricts the secret id to CIDR blocks.Adds a metadata entry (attached to tokens issued with this secret id).Sets the AppRole mount (defaultapprole).numUses(int numUses) Sets the uses of the secret id (0 = unlimited).Sets the TTL of the secret id.
-
Method Details
-
mount
Sets the AppRole mount (defaultapprole).- Parameters:
mount- mount path- Returns:
- this builder
-
metadata
Adds a metadata entry (attached to tokens issued with this secret id).- Parameters:
key- keyvalue- value- Returns:
- this builder
-
cidrList
Restricts the secret id to CIDR blocks.- Parameters:
cidrs- blocks- Returns:
- this builder
-
ttl
Sets the TTL of the secret id.- Parameters:
ttl- TTL- Returns:
- this builder
-
numUses
Sets the uses of the secret id (0 = unlimited).- Parameters:
numUses- uses- Returns:
- this builder
-
build
Builds the options.- Returns:
- the options
-