Class BaseAuthenticationProvider

java.lang.Object
com.microsoft.graph.authentication.BaseAuthenticationProvider
All Implemented Interfaces:
IAuthenticationProvider
Direct Known Subclasses:
TokenCredentialAuthProvider

public abstract class BaseAuthenticationProvider extends Object implements IAuthenticationProvider
Provides basic common methods for all authentication providers
  • Constructor Details

    • BaseAuthenticationProvider

      public BaseAuthenticationProvider()
  • Method Details

    • shouldAuthenticateRequestWithUrl

      protected boolean shouldAuthenticateRequestWithUrl(@Nonnull URL requestUrl)
      Determines whether a request should be authenticated or not based on it's url. If you're implementing a custom provider, call that method first before getting the token
      Parameters:
      requestUrl - request URL that is about to be executed
      Returns:
      whether a token should be attached to this request