Class ClientCertificateAuthentication
java.lang.Object
org.springframework.vault.authentication.ClientCertificateAuthentication
- All Implemented Interfaces:
AuthenticationStepsFactory,ClientAuthentication
public class ClientCertificateAuthentication
extends Object
implements ClientAuthentication, AuthenticationStepsFactory
TLS Client Certificate
ClientAuthentication.- Author:
- Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionClientCertificateAuthentication(ClientCertificateAuthenticationOptions options, RestOperations restOperations) Create aClientCertificateAuthenticationusingRestOperations.ClientCertificateAuthentication(RestOperations restOperations) Create aClientCertificateAuthenticationusingRestOperations. -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthenticationStepsCreates aAuthenticationStepsfor client certificate authentication.static AuthenticationStepsCreates aAuthenticationStepsfor client certificate authentication.Get theAuthenticationStepsdescribing an authentication flow.login()Return aVaultToken.
-
Constructor Details
-
ClientCertificateAuthentication
Create aClientCertificateAuthenticationusingRestOperations.- Parameters:
restOperations- must not be null.
-
ClientCertificateAuthentication
public ClientCertificateAuthentication(ClientCertificateAuthenticationOptions options, RestOperations restOperations) Create aClientCertificateAuthenticationusingRestOperations.- Parameters:
options- must not be null.restOperations- must not be null.- Since:
- 2.3
-
-
Method Details
-
createAuthenticationSteps
Creates aAuthenticationStepsfor client certificate authentication.- Returns:
AuthenticationStepsfor client certificate authentication.- Since:
- 2.0
-
createAuthenticationSteps
public static AuthenticationSteps createAuthenticationSteps(ClientCertificateAuthenticationOptions options) Creates aAuthenticationStepsfor client certificate authentication.- Parameters:
options- must not be null.- Returns:
AuthenticationStepsfor client certificate authentication.- Since:
- 2.3
-
login
Description copied from interface:ClientAuthenticationReturn aVaultToken. This method can optionally log into Vault to obtain atoken.- Specified by:
loginin interfaceClientAuthentication- Returns:
- a
VaultToken.
-
getAuthenticationSteps
Description copied from interface:AuthenticationStepsFactoryGet theAuthenticationStepsdescribing an authentication flow.- Specified by:
getAuthenticationStepsin interfaceAuthenticationStepsFactory- Returns:
- the
AuthenticationStepsdescribing an authentication flow.
-