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
ConstructorsConstructorDescriptionPcfAuthentication(PcfAuthenticationOptions options, RestOperations restOperations) -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthenticationStepsCreates aAuthenticationStepsfor pcf authentication givenPcfAuthenticationOptions.Get theAuthenticationStepsdescribing an authentication flow.login()Return aVaultToken.
-
Constructor Details
-
PcfAuthentication
- Parameters:
options- must not be null.restOperations- must not be null.
-
-
Method Details
-
createAuthenticationSteps
Creates aAuthenticationStepsfor pcf authentication givenPcfAuthenticationOptions.- Parameters:
options- must not be null.- Returns:
AuthenticationStepsfor pcf authentication.
-
login
Description copied from interface:ClientAuthenticationReturn aVaultToken. This method can optionally log into Vault to obtain atoken.- Specified by:
loginin interfaceClientAuthentication- Returns:
- a
VaultToken. - Throws:
VaultException
-
getAuthenticationSteps
Description copied from interface:AuthenticationStepsFactoryGet theAuthenticationStepsdescribing an authentication flow.- Specified by:
getAuthenticationStepsin interfaceAuthenticationStepsFactory- Returns:
- the
AuthenticationStepsdescribing an authentication flow.
-