- java.lang.Object
-
- io.helidon.integrations.vault.VaultTokenBase
-
- Direct Known Subclasses:
VaultToken
public abstract class VaultTokenBase extends Object
Abstract implementation of token that can be used to access the Vault.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VaultTokenBase.Builder<B extends VaultTokenBase.Builder<B,T>,T>
Base builder class for tokens.
-
Constructor Summary
Constructors Modifier Constructor Description protected
VaultTokenBase(VaultTokenBase.Builder<?,?> builder)
Create a new instance using the provided builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instant
created()
When this token was created.Duration
leaseDuration()
Lease duration.boolean
renewable()
Whether the token is renewable.String
token()
The token string.
-
-
-
Constructor Detail
-
VaultTokenBase
protected VaultTokenBase(VaultTokenBase.Builder<?,?> builder)
Create a new instance using the provided builder.- Parameters:
builder
- builder
-
-
Method Detail
-
created
public Instant created()
When this token was created.- Returns:
- time this token instance was created
-
token
public String token()
The token string.- Returns:
- token
-
leaseDuration
public Duration leaseDuration()
Lease duration.- Returns:
- lease duration
-
renewable
public boolean renewable()
Whether the token is renewable.- Returns:
- if renewable
-
-