java.lang.Object
de.stklcode.jvault.connector.model.AppRole
- All Implemented Interfaces:
Serializable
Vault AppRole role metamodel.
- Since:
- 0.4.0, 1.1 implements
Serializable - Author:
- Stefan Kalscheuer
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder for vault AppRole roles.. -
Constructor Summary
ConstructorsConstructorDescriptionAppRole()Construct emptyAppRoleobject.AppRole(AppRole.Builder builder) ConstructAppRoleobject fromAppRole.Builder. -
Method Summary
Modifier and TypeMethodDescriptionstatic AppRole.BuilderGetAppRole.Builderinstance.booleangetId()getName()inthashCode()voidsetBoundCidrs(List<String> boundCidrList) voidsetSecretIdBoundCidrs(List<String> secretIdBoundCidrs) voidsetTokenPolicies(List<String> tokenPolicies)
-
Constructor Details
-
AppRole
public AppRole()Construct emptyAppRoleobject. -
AppRole
ConstructAppRoleobject fromAppRole.Builder.- Parameters:
builder- AppRole builder.
-
-
Method Details
-
builder
GetAppRole.Builderinstance.- Parameters:
name- Role name.- Returns:
- AppRole Builder.
- Since:
- 0.8
-
getName
- Returns:
- the role name
-
getId
- Returns:
- the role ID
-
getBindSecretId
- Returns:
- bind secret ID
-
getTokenBoundCidrs
- Returns:
- list of bound CIDR subnets of associated tokens
- Since:
- 0.9
-
setBoundCidrs
- Parameters:
boundCidrList- list of subnets in CIDR notation to bind role to- Since:
- 0.9
-
getTokenBoundCidrsString
- Returns:
- list of subnets in CIDR notation as comma-separated
String - Since:
- 0.9
-
getSecretIdBoundCidrs
- Returns:
- list of bound CIDR subnets
- Since:
- 0.8 replaces
getBoundCidrList()
-
setSecretIdBoundCidrs
- Parameters:
secretIdBoundCidrs- List of subnets in CIDR notation to bind secrets of this role to.- Since:
- 0.8 replaces
setBoundCidrList(List)
-
getSecretIdBoundCidrsString
- Returns:
- List of subnets in CIDR notation as comma-separated
String - Since:
- 0.8 replaces
getBoundCidrListString()()}
-
getTokenPolicies
- Returns:
- list of token policies
- Since:
- 0.9
-
setTokenPolicies
- Parameters:
tokenPolicies- list of token policies- Since:
- 0.9
-
getTokenPoliciesString
- Returns:
- list of policies as comma-separated
String - Since:
- 0.9
-
getSecretIdNumUses
- Returns:
- maximum number of uses per secret
-
getSecretIdTtl
- Returns:
- maximum TTL in seconds for secrets
-
getEnableLocalSecretIds
- Returns:
- Enable local secret IDs?
- Since:
- 0.9
-
getTokenTtl
- Returns:
- token TTL in seconds
-
getTokenMaxTtl
- Returns:
- maximum token TTL in seconds, including renewals
-
getTokenExplicitMaxTtl
- Returns:
- explicit maximum token TTL in seconds, including renewals
- Since:
- 0.9
-
getTokenNoDefaultPolicy
- Returns:
- enable default policy for token?
- Since:
- 0.9
-
getTokenNumUses
- Returns:
- number of uses for token
- Since:
- 0.9
-
getTokenPeriod
- Returns:
- duration in seconds, if specified
- Since:
- 0.9
-
getTokenType
- Returns:
- duration in seconds, if specified
- Since:
- 0.9
-
equals
-
hashCode
public int hashCode()
-