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
ConstructorsConstructorDescriptionAppIdAuthentication(AppIdAuthenticationOptions options, RestOperations restOperations) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthenticationStepsDeprecated, for removal: This API element is subject to removal in a future version.CreateAuthenticationStepsfor AppId authentication givenAppIdAuthenticationOptions.Deprecated, for removal: This API element is subject to removal in a future version.Get theAuthenticationStepsdescribing an authentication flow.login()Deprecated, for removal: This API element is subject to removal in a future version.Obtain aVaultTokenfor authenticated Vault access.
-
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.CreateAuthenticationStepsfor AppId authentication givenAppIdAuthenticationOptions.- Parameters:
options- must not be null.- Returns:
AuthenticationStepsfor AppId authentication.- Since:
- 2.0
-
login
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AuthenticationStepsFactoryGet theAuthenticationStepsdescribing an authentication flow.- Specified by:
getAuthenticationStepsin interfaceAuthenticationStepsFactory- Returns:
- the
AuthenticationStepsdescribing an authentication flow.
-
AppRoleAuthentication.