Class KubernetesAuthenticationOptions.KubernetesAuthenticationOptionsBuilder
java.lang.Object
org.springframework.vault.authentication.KubernetesAuthenticationOptions.KubernetesAuthenticationOptionsBuilder
- Enclosing class:
- KubernetesAuthenticationOptions
public static class KubernetesAuthenticationOptions.KubernetesAuthenticationOptionsBuilder
extends Object
Builder for
KubernetesAuthenticationOptions
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a newKubernetesAuthenticationOptions
instance.jwtSupplier
(Supplier<String> jwtSupplier) Configure theSupplier
to obtain a Kubernetes authentication token.Configure the mount path.Configure the role.
-
Constructor Details
-
KubernetesAuthenticationOptionsBuilder
public KubernetesAuthenticationOptionsBuilder()
-
-
Method Details
-
path
Configure the mount path.- Parameters:
path
- must not be null or empty.- Returns:
this
KubernetesAuthenticationOptions.KubernetesAuthenticationOptionsBuilder
.
-
role
Configure the role.- Parameters:
role
- name of the role against which the login is being attempted, must not be null or empty.- Returns:
this
KubernetesAuthenticationOptions.KubernetesAuthenticationOptionsBuilder
.
-
jwtSupplier
public KubernetesAuthenticationOptions.KubernetesAuthenticationOptionsBuilder jwtSupplier(Supplier<String> jwtSupplier) Configure theSupplier
to obtain a Kubernetes authentication token.- Parameters:
jwtSupplier
- the supplier, must not be null.- Returns:
this
KubernetesAuthenticationOptions.KubernetesAuthenticationOptionsBuilder
.- See Also:
-
build
Build a newKubernetesAuthenticationOptions
instance.- Returns:
- a new
KubernetesAuthenticationOptions
.
-