Class BaseBearerTokenAuthenticationProvider

java.lang.Object
com.microsoft.kiota.authentication.BaseBearerTokenAuthenticationProvider
All Implemented Interfaces:
AuthenticationProvider

public class BaseBearerTokenAuthenticationProvider extends Object implements AuthenticationProvider
Provides a base class for implementing AuthenticationProvider for Bearer token scheme.
  • Constructor Details

    • BaseBearerTokenAuthenticationProvider

      public BaseBearerTokenAuthenticationProvider(@Nonnull AccessTokenProvider accessTokenProvider)
      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: AuthenticationProvider
      Authenticates the application request.
      Specified by:
      authenticateRequest in interface AuthenticationProvider
      Parameters:
      request - the request to authenticate.
      additionalAuthenticationContext - Additional authentication context to pass to the authentication library.