java.lang.Object
de.stklcode.jvault.connector.model.Token
- All Implemented Interfaces:
Serializable
Vault Token metamodel.
- Since:
- 0.4.0, 1.1 implements
Serializable
- Author:
- Stefan Kalscheuer
- See Also:
-
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.boolean
getId()
getMeta()
getTtl()
getType()
int
hashCode()
-
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
-
equals
-
hashCode
public int hashCode()
-