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
ConstructorDescriptionClientCertificateAuthentication
(ClientCertificateAuthenticationOptions options, RestOperations restOperations) Create aClientCertificateAuthentication
usingRestOperations
.ClientCertificateAuthentication
(RestOperations restOperations) Create aClientCertificateAuthentication
usingRestOperations
. -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthenticationSteps
Creates aAuthenticationSteps
for client certificate authentication.static AuthenticationSteps
Creates aAuthenticationSteps
for client certificate authentication.Get theAuthenticationSteps
describing an authentication flow.login()
Return aVaultToken
.
-
Constructor Details
-
ClientCertificateAuthentication
Create aClientCertificateAuthentication
usingRestOperations
.- Parameters:
restOperations
- must not be null.
-
ClientCertificateAuthentication
public ClientCertificateAuthentication(ClientCertificateAuthenticationOptions options, RestOperations restOperations) Create aClientCertificateAuthentication
usingRestOperations
.- Parameters:
options
- must not be null.restOperations
- must not be null.- Since:
- 2.3
-
-
Method Details
-
createAuthenticationSteps
Creates aAuthenticationSteps
for client certificate authentication.- Returns:
AuthenticationSteps
for client certificate authentication.- Since:
- 2.0
-
createAuthenticationSteps
public static AuthenticationSteps createAuthenticationSteps(ClientCertificateAuthenticationOptions options) Creates aAuthenticationSteps
for client certificate authentication.- Parameters:
options
- must not be null.- Returns:
AuthenticationSteps
for client certificate authentication.- Since:
- 2.3
-
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
.
-
getAuthenticationSteps
Description copied from interface:AuthenticationStepsFactory
Get theAuthenticationSteps
describing an authentication flow.- Specified by:
getAuthenticationSteps
in interfaceAuthenticationStepsFactory
- Returns:
- the
AuthenticationSteps
describing an authentication flow.
-