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.- Since:
- 2.0
- Author:
- Michal Budzyn, Mark Paluch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a newKubernetesAuthenticationOptionsinstance.jwtSupplier(Supplier<String> jwtSupplier) Configure theSupplierto 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:
thisKubernetesAuthenticationOptions.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:
thisKubernetesAuthenticationOptions.KubernetesAuthenticationOptionsBuilder.
-
jwtSupplier
public KubernetesAuthenticationOptions.KubernetesAuthenticationOptionsBuilder jwtSupplier(Supplier<String> jwtSupplier) Configure theSupplierto obtain a Kubernetes authentication token.- Parameters:
jwtSupplier- the supplier, must not be null.- Returns:
thisKubernetesAuthenticationOptions.KubernetesAuthenticationOptionsBuilder.- See Also:
-
build
Build a newKubernetesAuthenticationOptionsinstance.- Returns:
- a new
KubernetesAuthenticationOptions.
-