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: PCFConstructor 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
ClientAuthentication
VaultToken
. This method can optionally log into Vault to obtain a
token
.login
in interface ClientAuthentication
VaultToken
.VaultException
public AuthenticationSteps getAuthenticationSteps()
AuthenticationStepsFactory
AuthenticationSteps
describing an authentication flow.getAuthenticationSteps
in interface AuthenticationStepsFactory
AuthenticationSteps
describing an authentication flow.Copyright © 2016–2019 Pivotal Software, Inc.. All rights reserved.