Class UsernamePasswordAuthenticationOptions.UsernamePasswordAuthenticationBuilder
java.lang.Object
org.springframework.vault.authentication.UsernamePasswordAuthenticationOptions.UsernamePasswordAuthenticationBuilder
- Enclosing class:
- UsernamePasswordAuthenticationOptions
public static class UsernamePasswordAuthenticationOptions.UsernamePasswordAuthenticationBuilder
extends Object
Builder for
UsernamePasswordAuthenticationOptions
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a newUsernamePasswordAuthenticationOptions
instance.password
(CharSequence password) Configure apassword
for userpass authentication.Configure the mount path.totp
(CharSequence totp) Configure an optionaltotp
(time-based one-time token) for userpass/Okta authentication.Configure ausername
for userpass authentication.
-
Method Details
-
username
public UsernamePasswordAuthenticationOptions.UsernamePasswordAuthenticationBuilder username(String username) Configure ausername
for userpass authentication.- Parameters:
username
- must not be empty or null.- Returns:
this
UsernamePasswordAuthenticationOptions.UsernamePasswordAuthenticationBuilder
.
-
password
public UsernamePasswordAuthenticationOptions.UsernamePasswordAuthenticationBuilder password(CharSequence password) Configure apassword
for userpass authentication.- Parameters:
password
- must not be null.- Returns:
this
UsernamePasswordAuthenticationOptions.UsernamePasswordAuthenticationBuilder
.
-
totp
public UsernamePasswordAuthenticationOptions.UsernamePasswordAuthenticationBuilder totp(CharSequence totp) Configure an optionaltotp
(time-based one-time token) for userpass/Okta authentication.- Parameters:
totp
- must not be null.- Returns:
this
UsernamePasswordAuthenticationOptions.UsernamePasswordAuthenticationBuilder
.
-
path
public UsernamePasswordAuthenticationOptions.UsernamePasswordAuthenticationBuilder path(String path) Configure the mount path.- Parameters:
path
- must not be null or empty.- Returns:
this
UsernamePasswordAuthenticationOptions.UsernamePasswordAuthenticationBuilder
.
-
build
Build a newUsernamePasswordAuthenticationOptions
instance.- Returns:
- a new
UsernamePasswordAuthenticationOptions
.
-