Class AppIdAuthentication
java.lang.Object
org.springframework.vault.authentication.AppIdAuthentication
- All Implemented Interfaces:
AuthenticationStepsFactory
,ClientAuthentication
@Deprecated(since="2.2",
forRemoval=true)
public class AppIdAuthentication
extends Object
implements ClientAuthentication, AuthenticationStepsFactory
Deprecated, for removal: This API element is subject to removal in a future version.
AppId implementation of
ClientAuthentication
. AppIdAuthentication
uses
a configured AppIdUserIdMechanism
to obtain or calculate a UserId. AppId and
UserId are sent in the login request to Vault to obtain a VaultToken
.- Author:
- Mark Paluch
- See Also:
-
Constructor Summary
ConstructorDescriptionAppIdAuthentication
(AppIdAuthenticationOptions options, RestOperations restOperations) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthenticationSteps
Deprecated, for removal: This API element is subject to removal in a future version.Creates aAuthenticationSteps
for AppId authentication givenAppIdAuthenticationOptions
.Deprecated, for removal: This API element is subject to removal in a future version.Get theAuthenticationSteps
describing an authentication flow.login()
Deprecated, for removal: This API element is subject to removal in a future version.Return aVaultToken
.
-
Constructor Details
-
AppIdAuthentication
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
options
- must not be null.restOperations
- must not be null.
-
-
Method Details
-
createAuthenticationSteps
Deprecated, for removal: This API element is subject to removal in a future version.Creates aAuthenticationSteps
for AppId authentication givenAppIdAuthenticationOptions
.- Parameters:
options
- must not be null.- Returns:
AuthenticationSteps
for AppId authentication.- Since:
- 2.0
-
login
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AuthenticationStepsFactory
Get theAuthenticationSteps
describing an authentication flow.- Specified by:
getAuthenticationSteps
in interfaceAuthenticationStepsFactory
- Returns:
- the
AuthenticationSteps
describing an authentication flow.
-
AppRoleAuthentication
.