Class PcfAuthentication
java.lang.Object
org.springframework.vault.authentication.PcfAuthentication
- All Implemented Interfaces:
AuthenticationStepsFactory
,ClientAuthentication
public class PcfAuthentication
extends Object
implements ClientAuthentication, AuthenticationStepsFactory
PCF implementation of
ClientAuthentication
. PcfAuthentication
uses a
PCF instance certificate and key to login into Vault.
Requires BouncyCastle to generate a RSA PSS signature.
- Since:
- 2.2
- Author:
- Mark Paluch
- See Also:
-
Constructor Summary
ConstructorDescriptionPcfAuthentication
(PcfAuthenticationOptions options, RestOperations restOperations) -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthenticationSteps
Creates aAuthenticationSteps
for pcf authentication givenPcfAuthenticationOptions
.Get theAuthenticationSteps
describing an authentication flow.login()
Return aVaultToken
.
-
Constructor Details
-
PcfAuthentication
- Parameters:
options
- must not be null.restOperations
- must not be null.
-
-
Method Details
-
createAuthenticationSteps
Creates aAuthenticationSteps
for pcf authentication givenPcfAuthenticationOptions
.- Parameters:
options
- must not be null.- Returns:
AuthenticationSteps
for pcf authentication.
-
login
Description copied from interface:ClientAuthentication
Return aVaultToken
. This method can optionally log into Vault to obtain atoken
.- Specified by:
login
in interfaceClientAuthentication
- Returns:
- a
VaultToken
. - Throws:
VaultException
-
getAuthenticationSteps
Description copied from interface:AuthenticationStepsFactory
Get theAuthenticationSteps
describing an authentication flow.- Specified by:
getAuthenticationSteps
in interfaceAuthenticationStepsFactory
- Returns:
- the
AuthenticationSteps
describing an authentication flow.
-