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
,
VaultClient
,
Auth Backend:
AppRoleConstructor and Description |
---|
AppRoleAuthentication(AppRoleAuthenticationOptions options,
VaultClient vaultClient)
|
Modifier and Type | Method and Description |
---|---|
VaultToken |
login()
Return a
VaultToken . |
public AppRoleAuthentication(AppRoleAuthenticationOptions options, VaultClient vaultClient)
options
- must not be null.vaultClient
- 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.