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, Andy Lintner
-
Constructor Summary
ConstructorsConstructorDescriptionClientCertificateAuthentication(ClientCertificateAuthenticationOptions options, RestOperations restOperations) Create aClientCertificateAuthenticationusingRestOperations.ClientCertificateAuthentication(RestOperations restOperations) Create aClientCertificateAuthenticationusingRestOperations. -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthenticationStepsCreateAuthenticationStepsfor client certificate authentication.static AuthenticationStepsCreateAuthenticationStepsfor client certificate authentication.Get theAuthenticationStepsdescribing an authentication flow.login()Obtain aVaultTokenfor authenticated Vault access.
-
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
CreateAuthenticationStepsfor client certificate authentication.- Returns:
AuthenticationStepsfor client certificate authentication.- Since:
- 2.0
-
createAuthenticationSteps
public static AuthenticationSteps createAuthenticationSteps(ClientCertificateAuthenticationOptions options) CreateAuthenticationStepsfor client certificate authentication.- Parameters:
options- must not be null.- Returns:
AuthenticationStepsfor client certificate authentication.- Since:
- 2.3
-
login
Description copied from interface:ClientAuthenticationObtain aVaultTokenfor authenticated Vault access.This method may perform an authentication request to Vault or return a cached or pre-configured token.
- Specified by:
loginin interfaceClientAuthentication- Returns:
- the Vault token for subsequent authenticated requests
- See Also:
-
getAuthenticationSteps
Description copied from interface:AuthenticationStepsFactoryGet theAuthenticationStepsdescribing an authentication flow.- Specified by:
getAuthenticationStepsin interfaceAuthenticationStepsFactory- Returns:
- the
AuthenticationStepsdescribing an authentication flow.
-