Class TokenRole
- java.lang.Object
-
- de.stklcode.jvault.connector.model.TokenRole
-
public final class TokenRole extends Object
Vault Token Role metamodel.- Since:
- 0.9
- Author:
- Stefan Kalscheuer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TokenRole.Builder
A builder for vault token roles.
-
Constructor Summary
Constructors Constructor Description TokenRole()
Construct emptyTokenRole
object.TokenRole(TokenRole.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TokenRole.Builder
builder()
GetTokenRole.Builder
instance.List<String>
getAllowedEntityAliases()
List<String>
getAllowedPolicies()
List<String>
getDisallowedPolicies()
String
getName()
Boolean
getOrphan()
String
getPathSuffix()
Boolean
getRenewable()
List<String>
getTokenBoundCidrs()
Integer
getTokenExplicitMaxTtl()
Boolean
getTokenNoDefaultPolicy()
Integer
getTokenNumUses()
Integer
getTokenPeriod()
String
getTokenType()
-
-
-
Constructor Detail
-
TokenRole
public TokenRole()
Construct emptyTokenRole
object.
-
TokenRole
public TokenRole(TokenRole.Builder builder)
-
-
Method Detail
-
builder
public static TokenRole.Builder builder()
GetTokenRole.Builder
instance.- Returns:
- Token Role Builder.
-
getName
public String getName()
- Returns:
- Token Role name
-
getDisallowedPolicies
public List<String> getDisallowedPolicies()
- Returns:
- List of disallowed policies
-
getOrphan
public Boolean getOrphan()
- Returns:
- Is Token Role orphan?
-
getRenewable
public Boolean getRenewable()
- Returns:
- Is Token Role renewable?
-
getPathSuffix
public String getPathSuffix()
- Returns:
- Path suffix
-
getAllowedEntityAliases
public List<String> getAllowedEntityAliases()
- Returns:
- List of allowed entity aliases
-
getTokenExplicitMaxTtl
public Integer getTokenExplicitMaxTtl()
- Returns:
- Token explicit maximum TTL
-
getTokenNoDefaultPolicy
public Boolean getTokenNoDefaultPolicy()
- Returns:
- Token without default policy?
-
getTokenNumUses
public Integer getTokenNumUses()
- Returns:
- Token number of uses
-
getTokenPeriod
public Integer getTokenPeriod()
- Returns:
- Token period
-
getTokenType
public String getTokenType()
- Returns:
- Token type
-
-