public class PcfAuthentication extends Object implements ClientAuthentication, AuthenticationStepsFactory
ClientAuthentication. PcfAuthentication uses a
PCF instance certificate and key to login into Vault.
Requires BouncyCastle to generate a RSA PSS signature.
PcfAuthenticationOptions,
RestOperations,
Auth Backend: PCF| Constructor and Description |
|---|
PcfAuthentication(PcfAuthenticationOptions options,
RestOperations restOperations)
|
| Modifier and Type | Method and Description |
|---|---|
static AuthenticationSteps |
createAuthenticationSteps(PcfAuthenticationOptions options)
Creates a
AuthenticationSteps for pcf authentication given
PcfAuthenticationOptions. |
AuthenticationSteps |
getAuthenticationSteps()
Get the
AuthenticationSteps describing an authentication flow. |
VaultToken |
login()
Return a
VaultToken. |
public PcfAuthentication(PcfAuthenticationOptions options, RestOperations restOperations)
options - must not be null.restOperations - must not be null.public static AuthenticationSteps createAuthenticationSteps(PcfAuthenticationOptions options)
AuthenticationSteps for pcf authentication given
PcfAuthenticationOptions.options - must not be null.AuthenticationSteps for pcf 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–2020 Pivotal Software, Inc.. All rights reserved.