Interface OAuth2Credentials.Builder

    • Method Detail

      • clientId

        OAuth2Credentials.Builder clientId​(String clientId)

        The identifier for the desired client.

        Parameters:
        clientId - The identifier for the desired client.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • clientSecret

        OAuth2Credentials.Builder clientSecret​(String clientSecret)

        The client secret used by the OAuth client to authenticate to the authorization server.

        Parameters:
        clientSecret - The client secret used by the OAuth client to authenticate to the authorization server.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • accessToken

        OAuth2Credentials.Builder accessToken​(String accessToken)

        The access token used to access the connector on your behalf.

        Parameters:
        accessToken - The access token used to access the connector on your behalf.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • refreshToken

        OAuth2Credentials.Builder refreshToken​(String refreshToken)

        The refresh token used to refresh an expired access token.

        Parameters:
        refreshToken - The refresh token used to refresh an expired access token.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • oAuthRequest

        OAuth2Credentials.Builder oAuthRequest​(ConnectorOAuthRequest oAuthRequest)
        Sets the value of the OAuthRequest property for this object.
        Parameters:
        oAuthRequest - The new value for the OAuthRequest property for this object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.