- 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 classVaultTokenBase.Builder<B extends VaultTokenBase.Builder<B,T>,T>Base builder class for tokens.
-
Constructor Summary
Constructors Modifier Constructor Description protectedVaultTokenBase(VaultTokenBase.Builder<?,?> builder)Create a new instance using the provided builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instantcreated()When this token was created.DurationleaseDuration()Lease duration.booleanrenewable()Whether the token is renewable.Stringtoken()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
-
-