Class K8sVaultAuth.Builder
java.lang.Object
io.helidon.integrations.vault.auths.k8s.K8sVaultAuth.Builder
- All Implemented Interfaces:
Builder<K8sVaultAuth.Builder,
,K8sVaultAuth> Supplier<K8sVaultAuth>
- Enclosing class:
- K8sVaultAuth
public static class K8sVaultAuth.Builder
extends Object
implements Builder<K8sVaultAuth.Builder,K8sVaultAuth>
Fluent API builder for
K8sVaultAuth
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance from this builder.Custom method path.serviceAccountToken
(String serviceAccountToken) The k8s service account token.tokenLocation
(String tokenLocation) File with the k8s service account token.The token role used for authentication.
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<K8sVaultAuth.Builder,
K8sVaultAuth> - Returns:
- instance of the built type
-
serviceAccountToken
The k8s service account token.- Parameters:
serviceAccountToken
- service account token- Returns:
- updated builder
-
tokenRole
The token role used for authentication.- Parameters:
tokenRole
- token role name- Returns:
- updated builder
-
tokenLocation
File with the k8s service account token.- Parameters:
tokenLocation
- path to service account token- Returns:
- updated builder
-
path
Custom method path.- Parameters:
path
- path of the k8s method, defaults toK8sAuthRx.AUTH_METHOD
default path- Returns:
- updated builder
-