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 K8sVaultAuthbuild()Build the instance from this builder.K8sVaultAuth.Builderpath(String path)Custom method path.K8sVaultAuth.BuilderserviceAccountToken(String serviceAccountToken)The k8s service account token.K8sVaultAuth.BuildertokenLocation(String tokenLocation)File with the k8s service account token.K8sVaultAuth.BuildertokenRole(String tokenRole)The token role used for authentication.
-
-
-
Method Detail
-
build
public K8sVaultAuth build()
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin 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_METHODdefault path- Returns:
- updated builder
-
-