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