Class BaseBearerTokenAuthenticationProvider
java.lang.Object
com.microsoft.kiota.authentication.BaseBearerTokenAuthenticationProvider
- All Implemented Interfaces:
AuthenticationProvider
Provides a base class for implementing AuthenticationProvider for Bearer token scheme.
-
Constructor Summary
ConstructorsConstructorDescriptionBaseBearerTokenAuthenticationProvider(AccessTokenProvider accessTokenProvider) Instantiates a new BaseBearerTokenAuthenticationProvider. -
Method Summary
Modifier and TypeMethodDescriptionvoidauthenticateRequest(RequestInformation request, Map<String, Object> additionalAuthenticationContext) Authenticates the application request.
-
Constructor Details
-
BaseBearerTokenAuthenticationProvider
Instantiates a new BaseBearerTokenAuthenticationProvider.- Parameters:
accessTokenProvider- the access token provider.
-
-
Method Details
-
authenticateRequest
public void authenticateRequest(@Nonnull RequestInformation request, @Nullable Map<String, Object> additionalAuthenticationContext) Description copied from interface:AuthenticationProviderAuthenticates the application request.- Specified by:
authenticateRequestin interfaceAuthenticationProvider- Parameters:
request- the request to authenticate.additionalAuthenticationContext- Additional authentication context to pass to the authentication library.
-
getAccessTokenProvider
-