public class AppIdAuthentication extends Object implements ClientAuthentication, AuthenticationStepsFactory
ClientAuthentication
. AppIdAuthentication
uses
a configured AppIdUserIdMechanism
to obtain or calculate a UserId. AppId and
UserId are sent in the login request to Vault to obtain a VaultToken
.AppIdAuthenticationOptions
,
RestOperations
,
Auth Backend: App
IDConstructor and Description |
---|
AppIdAuthentication(AppIdAuthenticationOptions options,
RestOperations restOperations)
|
Modifier and Type | Method and Description |
---|---|
static AuthenticationSteps |
createAuthenticationSteps(AppIdAuthenticationOptions options)
Creates a
AuthenticationSteps for AppId authentication given
AppIdAuthenticationOptions . |
AuthenticationSteps |
getAuthenticationSteps()
Get the
AuthenticationSteps describing an authentication flow. |
VaultToken |
login()
Return a
VaultToken . |
public AppIdAuthentication(AppIdAuthenticationOptions options, RestOperations restOperations)
options
- must not be null.restOperations
- must not be null.public static AuthenticationSteps createAuthenticationSteps(AppIdAuthenticationOptions options)
AuthenticationSteps
for AppId authentication given
AppIdAuthenticationOptions
.options
- must not be null.AuthenticationSteps
for AppId authentication.public VaultToken login()
ClientAuthentication
VaultToken
. This method can optionally log into Vault to obtain a
token
.login
in interface ClientAuthentication
VaultToken
.public AuthenticationSteps getAuthenticationSteps()
AuthenticationStepsFactory
AuthenticationSteps
describing an authentication flow.getAuthenticationSteps
in interface AuthenticationStepsFactory
AuthenticationSteps
describing an authentication flow.Copyright © 2016–2019 Pivotal Software, Inc.. All rights reserved.