Package codes.grow.packages.vault
Interface AuthMethod
- All Known Implementing Classes:
AppRoleAuth,JwtAuth,KubernetesAuth,TokenAuth,UserpassAuth
public interface AuthMethod
An Vault auth method (
TokenAuth, AppRoleAuth, UserpassAuth, JwtAuth, KubernetesAuth) used with Auth.login(AuthMethod).-
Method Summary
Modifier and TypeMethodDescriptionlogin(LoginContext context) Performs the login.method()Returns the method name, e.g.
-
Method Details
-
method
String method()Returns the method name, e.g.approle.- Returns:
- the name
-
login
Performs the login.- Parameters:
context- login helpers of the client- Returns:
- a future with the auth info
-