Package io.helidon.integrations.vault
Class VaultTokenBase.Builder<B extends VaultTokenBase.Builder<B,T>,T>
java.lang.Object
io.helidon.integrations.vault.VaultTokenBase.Builder<B,T>
- Type Parameters:
B
- type of builderT
- type of token
- Direct Known Subclasses:
VaultToken.Builder
- Enclosing class:
- VaultTokenBase
public abstract static class VaultTokenBase.Builder<B extends VaultTokenBase.Builder<B,T>,T>
extends Object
implements Builder<B,T>
Base builder class for tokens.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Instant
created()
When the token was created.protected Duration
leaseDuration
(Duration leaseDuration) Lease duration.protected B
me()
protected boolean
renewable
(boolean renewable) Whether the token is renewable or not.protected String
token()
The token to use (actual string representing the token).
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
created
When the token was created.- Parameters:
created
- instant the token was created- Returns:
- updated builder
-
token
The token to use (actual string representing the token).- Parameters:
token
- token string- Returns:
- updated builder
-
leaseDuration
Lease duration.- Parameters:
leaseDuration
- lease duration, such asDuration.ofHours(long)
.- Returns:
- updated builder
-
renewable
Whether the token is renewable or not.- Parameters:
renewable
-true
for a renewable token- Returns:
- updated builder
-
me
-
created
-
token
-
leaseDuration
-
renewable
protected boolean renewable()
-