public class AppRoleAuthentication extends Object implements ClientAuthentication
ClientAuthentication
. RoleId and SecretId (optional)
are sent in the login request to Vault to obtain a VaultToken
.
AppRoleAuthentication
can be configured for push and pull mode by setting
AppRoleAuthenticationOptions.getSecretId()
.
AppRoleAuthenticationOptions
,
RestOperations
,
Auth Backend:
AppRoleConstructor and Description |
---|
AppRoleAuthentication(AppRoleAuthenticationOptions options,
org.springframework.web.client.RestOperations restOperations)
|
Modifier and Type | Method and Description |
---|---|
VaultToken |
login()
Return a
VaultToken . |
public AppRoleAuthentication(AppRoleAuthenticationOptions options, org.springframework.web.client.RestOperations restOperations)
options
- must not be null.restOperations
- must not be null.public VaultToken login()
ClientAuthentication
VaultToken
. This method can optionally log into Vault to obtain a
token
.login
in interface ClientAuthentication
VaultToken
.Copyright © 2016–2017 Pivotal Software, Inc.. All rights reserved.