public class UsernamePasswordAuthentication extends Object implements ClientAuthentication, AuthenticationStepsFactory
ClientAuthentication
. Can be used for
userpass
, ldap
, okta
, and radius
authentication
backends.UsernamePasswordAuthenticationOptions
,
RestOperations
,
Username and password,
LDAP authentication,
Okta authentication,
RADIUS authenticationConstructor and Description |
---|
UsernamePasswordAuthentication(UsernamePasswordAuthenticationOptions options,
RestOperations restOperations) |
Modifier and Type | Method and Description |
---|---|
static AuthenticationSteps |
createAuthenticationSteps(UsernamePasswordAuthenticationOptions options)
Creates a
AuthenticationSteps for username/password authentication given
UsernamePasswordAuthenticationOptions . |
AuthenticationSteps |
getAuthenticationSteps()
Get the
AuthenticationSteps describing an authentication flow. |
VaultToken |
login()
Return a
VaultToken . |
public UsernamePasswordAuthentication(UsernamePasswordAuthenticationOptions options, RestOperations restOperations)
public static AuthenticationSteps createAuthenticationSteps(UsernamePasswordAuthenticationOptions options)
AuthenticationSteps
for username/password authentication given
UsernamePasswordAuthenticationOptions
.options
- must not be null.AuthenticationSteps
for username/password authentication.public VaultToken login() throws VaultException
ClientAuthentication
VaultToken
. This method can optionally log into Vault to obtain a
token
.login
in interface ClientAuthentication
VaultToken
.VaultException
public AuthenticationSteps getAuthenticationSteps()
AuthenticationStepsFactory
AuthenticationSteps
describing an authentication flow.getAuthenticationSteps
in interface AuthenticationStepsFactory
AuthenticationSteps
describing an authentication flow.Copyright © 2016–2022 Pivotal Software, Inc.. All rights reserved.