- 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 classAppRole.BuilderA builder for vault AppRole roles..
-
Constructor Summary
Constructors Constructor Description AppRole()Construct emptyAppRoleobject.AppRole(AppRole.Builder builder)ConstructAppRoleobject fromAppRole.Builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AppRole.Builderbuilder(String name)GetAppRole.Builderinstance.BooleangetBindSecretId()BooleangetEnableLocalSecretIds()StringgetId()StringgetName()List<String>getSecretIdBoundCidrs()StringgetSecretIdBoundCidrsString()IntegergetSecretIdNumUses()IntegergetSecretIdTtl()List<String>getTokenBoundCidrs()StringgetTokenBoundCidrsString()IntegergetTokenExplicitMaxTtl()IntegergetTokenMaxTtl()BooleangetTokenNoDefaultPolicy()IntegergetTokenNumUses()IntegergetTokenPeriod()List<String>getTokenPolicies()StringgetTokenPoliciesString()IntegergetTokenTtl()StringgetTokenType()voidsetBoundCidrs(List<String> boundCidrList)voidsetSecretIdBoundCidrs(List<String> secretIdBoundCidrs)voidsetTokenPolicies(List<String> tokenPolicies)
-
-
-
Constructor Detail
-
AppRole
public AppRole()
Construct emptyAppRoleobject.
-
AppRole
public AppRole(AppRole.Builder builder)
ConstructAppRoleobject fromAppRole.Builder.- Parameters:
builder- AppRole builder.
-
-
Method Detail
-
builder
public static AppRole.Builder builder(String name)
GetAppRole.Builderinstance.- 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()()}
-
setTokenPolicies
public void setTokenPolicies(List<String> tokenPolicies)
- Parameters:
tokenPolicies- list of token policies- Since:
- 0.9
-
getTokenPoliciesString
public String getTokenPoliciesString()
- Returns:
- list of policies as comma-separated
String - Since:
- 0.9
-
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
-
getTokenType
public String getTokenType()
- Returns:
- duration in seconds, if specified
- Since:
- 0.9
-
-