public class LoginTokenAdapter extends Object implements ClientAuthentication
ClientAuthentication to a LoginToken. Allows
decoration of a ClientAuthentication object to perform a self-lookup after
token retrieval to obtain the remaining TTL, renewability, accessor and token type.
Using this adapter decrements the usage counter for the created token.
LoginToken| Constructor and Description |
|---|
LoginTokenAdapter(ClientAuthentication delegate,
org.springframework.web.client.RestOperations restOperations)
|
| Modifier and Type | Method and Description |
|---|---|
LoginToken |
login()
Return a
VaultToken. |
public LoginTokenAdapter(ClientAuthentication delegate, org.springframework.web.client.RestOperations restOperations)
delegate - must not be null.restOperations - must not be null.public LoginToken login() throws VaultException
ClientAuthenticationVaultToken. This method can optionally log into Vault to obtain a
token.login in interface ClientAuthenticationVaultToken.VaultExceptionCopyright © 2016–2024 Pivotal Software, Inc.. All rights reserved.