public class KubernetesAuthentication extends Object implements ClientAuthentication, AuthenticationStepsFactory
ClientAuthentication.
KubernetesAuthentication uses a Kubernetes Service Account JSON Web Token to
login into Vault. JWT and Role are sent in the login request to Vault to obtain a
VaultToken.KubernetesAuthenticationOptions,
RestOperations,
Auth Backend:
Kubernetes| Constructor and Description |
|---|
KubernetesAuthentication(KubernetesAuthenticationOptions options,
RestOperations restOperations)
|
| Modifier and Type | Method and Description |
|---|---|
static AuthenticationSteps |
createAuthenticationSteps(KubernetesAuthenticationOptions options)
Creates a
AuthenticationSteps for kubernetes authentication given
KubernetesAuthenticationOptions. |
AuthenticationSteps |
getAuthenticationSteps()
Get the
AuthenticationSteps describing an authentication flow. |
VaultToken |
login()
Return a
VaultToken. |
public KubernetesAuthentication(KubernetesAuthenticationOptions options, RestOperations restOperations)
options - must not be null.restOperations - must not be null.public static AuthenticationSteps createAuthenticationSteps(KubernetesAuthenticationOptions options)
AuthenticationSteps for kubernetes authentication given
KubernetesAuthenticationOptions.options - must not be null.AuthenticationSteps for kubernetes authentication.public VaultToken login() throws VaultException
ClientAuthenticationVaultToken. This method can optionally log into Vault to obtain a
token.login in interface ClientAuthenticationVaultToken.VaultExceptionpublic AuthenticationSteps getAuthenticationSteps()
AuthenticationStepsFactoryAuthenticationSteps describing an authentication flow.getAuthenticationSteps in interface AuthenticationStepsFactoryAuthenticationSteps describing an authentication flow.Copyright © 2016–2019 Pivotal Software, Inc.. All rights reserved.