public class TokenAuthentication extends Object implements ClientAuthentication
ClientAuthentication method.VaultToken,
Auth Backend: Token| Constructor and Description |
|---|
TokenAuthentication(String token)
Create a new
TokenAuthentication with a static token. |
TokenAuthentication(VaultToken token)
Create a new
TokenAuthentication with a static token. |
| Modifier and Type | Method and Description |
|---|---|
VaultToken |
login()
Return a
VaultToken. |
public TokenAuthentication(String token)
TokenAuthentication with a static token.token - the Vault token, must not be empty or null.public TokenAuthentication(VaultToken token)
TokenAuthentication with a static token.token - the Vault token, must not be null.public VaultToken login()
ClientAuthenticationVaultToken. This method can optionally log into Vault to obtain a
token.login in interface ClientAuthenticationVaultToken.Copyright © 2016–2017 Pivotal Software, Inc.. All rights reserved.