Class OAuth2ClientCredentialGrantProcessor

    • Constructor Detail

      • OAuth2ClientCredentialGrantProcessor

        OAuth2ClientCredentialGrantProcessor(OAuth2Configuration oauth2Configuration)
        Parameters:
        oauth2Configuration - Contains the configuration information.
      • OAuth2ClientCredentialGrantProcessor

        OAuth2ClientCredentialGrantProcessor(OAuth2Configuration oauth2Configuration, OkHttpClient client)
        Parameters:
        oauth2Configuration - Contains the configuration information.
        client - The OkHttpClient that will be used to make requests.
      • OAuth2ClientCredentialGrantProcessor

        OAuth2ClientCredentialGrantProcessor(OAuthConfig oAuthConfig)
        Constructs a new OAuth2ClientCredentialGrantProcessor.
        Parameters:
        oAuthConfig - the OAuth configuration
      • OAuth2ClientCredentialGrantProcessor

        OAuth2ClientCredentialGrantProcessor(OAuthConfig oAuthConfig, AbstractOAuthClient oAuthClient, OkHttpClient client)
        Constructs a new OAuth2ClientCredentialGrantProcessor.
        Parameters:
        oAuthConfig - the OAuth configuration
        oAuthClient - the AbstractOAuthClient used as OAuth credentials
        client - the OkHttpClient used to make requests
    • Method Detail

      • cancelAuthentication

         void cancelAuthentication()

        Cancels the ongoing authentication process. Does nothing if there was no ongoing authentication.