Class AppRoleBuilder
- java.lang.Object
-
- de.stklcode.jvault.connector.model.AppRoleBuilder
-
@Deprecated public final class AppRoleBuilder extends Object
Deprecated.As of 0.9 in favor ofAppRole.Builder
.A builder for vault AppRole roles..- Since:
- 0.4.0
- Author:
- Stefan Kalscheuer
-
-
Constructor Summary
Constructors Constructor Description AppRoleBuilder(String name)
Deprecated.ConstructAppRoleBuilder
with only the role name set.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AppRole
build()
Deprecated.Build the AppRole role based on given parameters.AppRoleBuilder
wit0hTokenPeriod(Integer tokenPeriod)
Deprecated.Set renewal period for generated token in seconds.AppRoleBuilder
withBindSecretID()
Deprecated.Bind role to secret ID.AppRoleBuilder
withBindSecretID(Boolean bindSecretId)
Deprecated.Set if role is bound to secret ID.AppRoleBuilder
withEnableLocalSecretIds(Boolean enableLocalSecretIds)
Deprecated.Enable or disable local secret IDs.AppRoleBuilder
withId(String id)
Deprecated.Add custom role ID.AppRoleBuilder
withoutBindSecretID()
Deprecated.Do not bind role to secret ID.AppRoleBuilder
withPeriod(Integer period)
Deprecated.Usewit0hTokenPeriod(Integer)
instead.AppRoleBuilder
withPolicies(List<String> policies)
Deprecated.UsewithTokenPolicies(List)
instead.AppRoleBuilder
withPolicy(String policy)
Deprecated.UsewithTokenPolicy(String)
instead.AppRoleBuilder
withSecretBoundCidr(String secretBoundCidr)
Deprecated.Add a CIDR block to list of bound blocks for secret.AppRoleBuilder
withSecretIdBoundCidrs(List<String> secretIdBoundCidrs)
Deprecated.Set bound CIDR blocks.AppRoleBuilder
withSecretIdNumUses(Integer secretIdNumUses)
Deprecated.Set number of uses for secret IDs.AppRoleBuilder
withSecretIdTtl(Integer secretIdTtl)
Deprecated.Set default secret ID TTL in seconds.AppRoleBuilder
withTokenBoundCidr(String tokenBoundCidr)
Deprecated.Add a CIDR block to list of bound blocks for token.AppRoleBuilder
withTokenBoundCidrs(List<String> tokenBoundCidrs)
Deprecated.Set bound CIDR blocks for associated tokens.AppRoleBuilder
withTokenExplicitMaxTtl(Integer tokenExplicitMaxTtl)
Deprecated.Set explicit maximum token TTL in seconds.AppRoleBuilder
withTokenMaxTtl(Integer tokenMaxTtl)
Deprecated.Set maximum token TTL in seconds.AppRoleBuilder
withTokenNoDefaultPolicy(Boolean tokenNoDefaultPolicy)
Deprecated.Enable or disable default policy for generated token.AppRoleBuilder
withTokenNumUses(Integer tokenNumUses)
Deprecated.Set number of uses for generated tokens.AppRoleBuilder
withTokenPolicies(List<String> tokenPolicies)
Deprecated.Add given policies.AppRoleBuilder
withTokenPolicy(String tokenPolicy)
Deprecated.Add a single policy.AppRoleBuilder
withTokenTtl(Integer tokenTtl)
Deprecated.Set default token TTL in seconds.AppRoleBuilder
withTokenType(Token.Type tokenType)
Deprecated.Set type of generated token.
-
-
-
Constructor Detail
-
AppRoleBuilder
public AppRoleBuilder(String name)
Deprecated.ConstructAppRoleBuilder
with only the role name set.- Parameters:
name
- Role name
-
-
Method Detail
-
withId
public AppRoleBuilder withId(String id)
Deprecated.Add custom role ID. (optional)- Parameters:
id
- the ID- Returns:
- self
-
withBindSecretID
public AppRoleBuilder withBindSecretID(Boolean bindSecretId)
Deprecated.Set if role is bound to secret ID.- Parameters:
bindSecretId
- the display name- Returns:
- self
-
withBindSecretID
public AppRoleBuilder withBindSecretID()
Deprecated.Bind role to secret ID. Convenience method forwithBindSecretID(Boolean)
- Returns:
- self
-
withoutBindSecretID
public AppRoleBuilder withoutBindSecretID()
Deprecated.Do not bind role to secret ID. Convenience method forwithBindSecretID(Boolean)
- Returns:
- self
-
withSecretIdBoundCidrs
public AppRoleBuilder withSecretIdBoundCidrs(List<String> secretIdBoundCidrs)
Deprecated.Set bound CIDR blocks.- Parameters:
secretIdBoundCidrs
- List of CIDR blocks which can perform login- Returns:
- self
- Since:
- 0.8 replaces
withBoundCidrList(List)
-
withSecretBoundCidr
public AppRoleBuilder withSecretBoundCidr(String secretBoundCidr)
Deprecated.Add a CIDR block to list of bound blocks for secret.- Parameters:
secretBoundCidr
- the CIDR block- Returns:
- self
- Since:
- 0.9
-
withTokenPolicies
public AppRoleBuilder withTokenPolicies(List<String> tokenPolicies)
Deprecated.Add given policies.- Parameters:
tokenPolicies
- the token policies- Returns:
- self
- Since:
- 0.9
-
withPolicies
@Deprecated public AppRoleBuilder withPolicies(List<String> policies)
Deprecated.UsewithTokenPolicies(List)
instead.Add given policies.- Parameters:
policies
- the policies- Returns:
- self
-
withTokenPolicy
public AppRoleBuilder withTokenPolicy(String tokenPolicy)
Deprecated.Add a single policy.- Parameters:
tokenPolicy
- the token policy- Returns:
- self
- Since:
- 0.9
-
withPolicy
@Deprecated public AppRoleBuilder withPolicy(String policy)
Deprecated.UsewithTokenPolicy(String)
instead.Add a single policy.- Parameters:
policy
- the policy- Returns:
- self
-
withSecretIdNumUses
public AppRoleBuilder withSecretIdNumUses(Integer secretIdNumUses)
Deprecated.Set number of uses for secret IDs.- Parameters:
secretIdNumUses
- the number of uses- Returns:
- self
-
withSecretIdTtl
public AppRoleBuilder withSecretIdTtl(Integer secretIdTtl)
Deprecated.Set default secret ID TTL in seconds.- Parameters:
secretIdTtl
- the TTL- Returns:
- self
-
withEnableLocalSecretIds
public AppRoleBuilder withEnableLocalSecretIds(Boolean enableLocalSecretIds)
Deprecated.Enable or disable local secret IDs.- Parameters:
enableLocalSecretIds
- Enable local secret IDs?- Returns:
- self
- Since:
- 0.9
-
withTokenTtl
public AppRoleBuilder withTokenTtl(Integer tokenTtl)
Deprecated.Set default token TTL in seconds.- Parameters:
tokenTtl
- the TTL- Returns:
- self
-
withTokenMaxTtl
public AppRoleBuilder withTokenMaxTtl(Integer tokenMaxTtl)
Deprecated.Set maximum token TTL in seconds.- Parameters:
tokenMaxTtl
- the TTL- Returns:
- self
-
withTokenBoundCidrs
public AppRoleBuilder withTokenBoundCidrs(List<String> tokenBoundCidrs)
Deprecated.Set bound CIDR blocks for associated tokens.- Parameters:
tokenBoundCidrs
- List of CIDR blocks which can perform login- Returns:
- self
- Since:
- 0.9
-
withTokenBoundCidr
public AppRoleBuilder withTokenBoundCidr(String tokenBoundCidr)
Deprecated.Add a CIDR block to list of bound blocks for token.- Parameters:
tokenBoundCidr
- the CIDR block- Returns:
- self
- Since:
- 0.9
-
withTokenExplicitMaxTtl
public AppRoleBuilder withTokenExplicitMaxTtl(Integer tokenExplicitMaxTtl)
Deprecated.Set explicit maximum token TTL in seconds.- Parameters:
tokenExplicitMaxTtl
- the TTL- Returns:
- self
-
withTokenNoDefaultPolicy
public AppRoleBuilder withTokenNoDefaultPolicy(Boolean tokenNoDefaultPolicy)
Deprecated.Enable or disable default policy for generated token.- Parameters:
tokenNoDefaultPolicy
- Enable default policy for token?- Returns:
- self
- Since:
- 0.9
-
withTokenNumUses
public AppRoleBuilder withTokenNumUses(Integer tokenNumUses)
Deprecated.Set number of uses for generated tokens.- Parameters:
tokenNumUses
- number of uses for tokens- Returns:
- self
- Since:
- 0.9
-
wit0hTokenPeriod
public AppRoleBuilder wit0hTokenPeriod(Integer tokenPeriod)
Deprecated.Set renewal period for generated token in seconds.- Parameters:
tokenPeriod
- period in seconds- Returns:
- self
- Since:
- 0.9
-
withPeriod
@Deprecated public AppRoleBuilder withPeriod(Integer period)
Deprecated.Usewit0hTokenPeriod(Integer)
instead.Set renewal period for generated token in seconds.- Parameters:
period
- period in seconds- Returns:
- self
-
withTokenType
public AppRoleBuilder withTokenType(Token.Type tokenType)
Deprecated.Set type of generated token.- Parameters:
tokenType
- token type- Returns:
- self
- Since:
- 0.9
-
build
public AppRole build()
Deprecated.Build the AppRole role based on given parameters.- Returns:
- the role
-
-