Interface Oauth2AccessTokenProvider
public interface Oauth2AccessTokenProvider
This interface defines a method to retrieve an OAuth 2.0 access token, based on
Oauth2AccessTokenProviderParameters.
If Blueriq's default implementation doesn't serve your needs, you can implement a custom Access Token Provider and
make it available as a Spring Bean.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the attribute that is used to (internally) pass through the token request parameters -
Method Summary
Modifier and TypeMethodDescriptiongetAccessToken(Oauth2AccessTokenProviderParameters parameters) Get an access token from the provider
-
Field Details
-
ATTR_TOKEN_REQUEST_PARAMETERS
Name of the attribute that is used to (internally) pass through the token request parameters- See Also:
-
-
Method Details
-
getAccessToken
Get an access token from the provider- Parameters:
parameters- an object containing parameters that are used to request an access token- Returns:
- The access token as returned, usually from an OAuth 2.0 token endpoint
-