Class AppRole
- java.lang.Object
-
- de.stklcode.jvault.connector.model.AppRole
-
public final class AppRole extends Object
Vault AppRole role metamodel.- Since:
- 0.4.0
- Author:
- Stefan Kalscheuer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AppRole.Builder
A builder for vault AppRole roles..
-
Constructor Summary
Constructors Constructor Description AppRole()
Construct emptyAppRole
object.AppRole(AppRole.Builder builder)
ConstructAppRole
object fromAppRole.Builder
.
-
Method Summary
-
-
-
Constructor Detail
-
AppRole
public AppRole()
Construct emptyAppRole
object.
-
AppRole
public AppRole(AppRole.Builder builder)
ConstructAppRole
object fromAppRole.Builder
.- Parameters:
builder
- AppRole builder.
-
-
Method Detail
-
builder
public static AppRole.Builder builder(String name)
GetAppRole.Builder
instance.- Parameters:
name
- Role name.- Returns:
- AppRole Builder.
- Since:
- 0.8
-
getName
public String getName()
- Returns:
- the role name
-
getId
public String getId()
- Returns:
- the role ID
-
getBindSecretId
public Boolean getBindSecretId()
- Returns:
- bind secret ID
-
getTokenBoundCidrs
public List<String> getTokenBoundCidrs()
- Returns:
- list of bound CIDR subnets of associated tokens
- Since:
- 0.9
-
setBoundCidrs
public void setBoundCidrs(List<String> boundCidrList)
- Parameters:
boundCidrList
- list of subnets in CIDR notation to bind role to- Since:
- 0.9
-
getTokenBoundCidrsString
public String getTokenBoundCidrsString()
- Returns:
- list of subnets in CIDR notation as comma-separated
String
- Since:
- 0.9
-
getSecretIdBoundCidrs
public List<String> getSecretIdBoundCidrs()
- Returns:
- list of bound CIDR subnets
- Since:
- 0.8 replaces
getBoundCidrList()
-
setSecretIdBoundCidrs
public void setSecretIdBoundCidrs(List<String> secretIdBoundCidrs)
- Parameters:
secretIdBoundCidrs
- List of subnets in CIDR notation to bind secrets of this role to.- Since:
- 0.8 replaces
setBoundCidrList(List)
-
getSecretIdBoundCidrsString
public String getSecretIdBoundCidrsString()
- Returns:
- List of subnets in CIDR notation as comma-separated
String
- Since:
- 0.8 replaces
getBoundCidrListString()
()}
-
getPolicies
@Deprecated public List<String> getPolicies()
Deprecated.UsegetTokenPolicies()
instead.- Returns:
- list of token policies
-
setTokenPolicies
public void setTokenPolicies(List<String> tokenPolicies)
- Parameters:
tokenPolicies
- list of token policies- Since:
- 0.9
-
setPolicies
@Deprecated public void setPolicies(List<String> policies)
Deprecated.UsesetTokenPolicies(List)
instead.- Parameters:
policies
- list of policies
-
getTokenPoliciesString
public String getTokenPoliciesString()
- Returns:
- list of policies as comma-separated
String
- Since:
- 0.9
-
getPoliciesString
@Deprecated public String getPoliciesString()
Deprecated.UsegetTokenPoliciesString()
instead.- Returns:
- list of policies as comma-separated
String
-
getSecretIdNumUses
public Integer getSecretIdNumUses()
- Returns:
- maximum number of uses per secret
-
getSecretIdTtl
public Integer getSecretIdTtl()
- Returns:
- maximum TTL in seconds for secrets
-
getEnableLocalSecretIds
public Boolean getEnableLocalSecretIds()
- Returns:
- Enable local secret IDs?
- Since:
- 0.9
-
getTokenTtl
public Integer getTokenTtl()
- Returns:
- token TTL in seconds
-
getTokenMaxTtl
public Integer getTokenMaxTtl()
- Returns:
- maximum token TTL in seconds, including renewals
-
getTokenExplicitMaxTtl
public Integer getTokenExplicitMaxTtl()
- Returns:
- explicit maximum token TTL in seconds, including renewals
- Since:
- 0.9
-
getTokenNoDefaultPolicy
public Boolean getTokenNoDefaultPolicy()
- Returns:
- enable default policy for token?
- Since:
- 0.9
-
getTokenNumUses
public Integer getTokenNumUses()
- Returns:
- number of uses for token
- Since:
- 0.9
-
getTokenPeriod
public Integer getTokenPeriod()
- Returns:
- duration in seconds, if specified
- Since:
- 0.9
-
getPeriod
@Deprecated public Integer getPeriod()
Deprecated.UsegetTokenPeriod()
instead.- Returns:
- duration in seconds, if specified
-
getTokenType
public String getTokenType()
- Returns:
- duration in seconds, if specified
- Since:
- 0.9
-
-