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 and renewability.
Using this adapter decrements the usage counter for the created token.
LoginToken
Constructor and Description |
---|
LoginTokenAdapter(ClientAuthentication delegate,
RestOperations restOperations)
|
Modifier and Type | Method and Description |
---|---|
LoginToken |
login()
Return a
VaultToken . |
public LoginTokenAdapter(ClientAuthentication delegate, RestOperations restOperations)
delegate
- must not be null.restOperations
- must not be null.public LoginToken login() throws VaultException
ClientAuthentication
VaultToken
. This method can optionally log into Vault to obtain a
token
.login
in interface ClientAuthentication
VaultToken
.VaultException
Copyright © 2016–2020 Pivotal Software, Inc.. All rights reserved.