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<T>
Base builder class for tokens.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Instant
created()
B
created(Instant created)
When the token was created.protected Duration
leaseDuration()
B
leaseDuration(Duration leaseDuration)
Lease duration.protected B
me()
protected boolean
renewable()
B
renewable(boolean renewable)
Whether the token is renewable or not.protected String
token()
B
token(String token)
The token to use (actual string representing the token).
-
-
-
Method Detail
-
created
public B created(Instant created)
When the token was created.- Parameters:
created
- instant the token was created- Returns:
- updated builder
-
token
public B token(String token)
The token to use (actual string representing the token).- Parameters:
token
- token string- Returns:
- updated builder
-
leaseDuration
public B leaseDuration(Duration leaseDuration)
Lease duration.- Parameters:
leaseDuration
- lease duration, such asDuration.ofHours(long)
.- Returns:
- updated builder
-
renewable
public B renewable(boolean renewable)
Whether the token is renewable or not.- Parameters:
renewable
-true
for a renewable token- Returns:
- updated builder
-
me
protected B me()
-
created
protected Instant created()
-
token
protected String token()
-
leaseDuration
protected Duration leaseDuration()
-
renewable
protected boolean renewable()
-
-