java.lang.Object
de.stklcode.jvault.connector.model.Token
Vault Token metamodel.
- Since:
- 0.4.0
- Author:
- Stefan Kalscheuer
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A builder for vault tokens.static enum
Constants for token types. -
Constructor Summary
ConstructorDescriptionToken()
Construct emptyToken
object.Token
(Token.Builder builder) ConstructToken
object fromToken.Builder
. -
Method Summary
Modifier and TypeMethodDescriptionstatic Token.Builder
builder()
GetToken.Builder
instance.getId()
getMeta()
getTtl()
getType()
-
Constructor Details
-
Token
public Token()Construct emptyToken
object. -
Token
ConstructToken
object fromToken.Builder
.- Parameters:
builder
- Token builder.
-
-
Method Details
-
builder
GetToken.Builder
instance.- Returns:
- Token Builder.
- Since:
- 0.8
-
getId
- Returns:
- Token ID
-
getType
- Returns:
- Token type
- Since:
- 0.9
-
getDisplayName
- Returns:
- Token display name
-
getNoParent
- Returns:
- Token has no parent
-
getNoDefaultPolicy
- Returns:
- Token has no default policy
-
getTtl
- Returns:
- Time-to-live in seconds
-
getExplicitMaxTtl
- Returns:
- Explicit maximum time-to-live in seconds
- Since:
- 0.9
-
getNumUses
- Returns:
- Number of uses
-
getPolicies
- Returns:
- List of policies
-
getMeta
- Returns:
- Metadata
-
isRenewable
- Returns:
- Token is renewable
-
getPeriod
- Returns:
- Token period.
- Since:
- 0.9
-
getEntityAlias
- Returns:
- Token entity alias.
- Since:
- 0.9
-