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 newUsernamePasswordAuthenticationOptionsinstance.password(CharSequence password) Configure apasswordfor userpass authentication.Configure the mount path.totp(CharSequence totp) Configure an optionaltotp(time-based one-time token) for userpass/Okta authentication.Configure ausernamefor userpass authentication. 
- 
Method Details
- 
username
public UsernamePasswordAuthenticationOptions.UsernamePasswordAuthenticationBuilder username(String username) Configure ausernamefor userpass authentication.- Parameters:
 username- must not be empty or null.- Returns:
 thisUsernamePasswordAuthenticationOptions.UsernamePasswordAuthenticationBuilder.
 - 
password
public UsernamePasswordAuthenticationOptions.UsernamePasswordAuthenticationBuilder password(CharSequence password) Configure apasswordfor userpass authentication.- Parameters:
 password- must not be null.- Returns:
 thisUsernamePasswordAuthenticationOptions.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:
 thisUsernamePasswordAuthenticationOptions.UsernamePasswordAuthenticationBuilder.
 - 
path
public UsernamePasswordAuthenticationOptions.UsernamePasswordAuthenticationBuilder path(String path) Configure the mount path.- Parameters:
 path- must not be null or empty.- Returns:
 thisUsernamePasswordAuthenticationOptions.UsernamePasswordAuthenticationBuilder.
 - 
build
Build a newUsernamePasswordAuthenticationOptionsinstance.- Returns:
 - a new 
UsernamePasswordAuthenticationOptions. 
 
 -