Class OAuth


  • public final class OAuth
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      OAuth()  
    • Constructor Detail

      • OAuth

        public OAuth()
    • Method Detail

      • setStripeResponseGetter

        public static void setStripeResponseGetter​(StripeResponseGetter srg)
      • token

        public static TokenResponse token​(java.util.Map<java.lang.String,​java.lang.Object> params,
                                          RequestOptions options)
                                   throws StripeException
        Uses an authorization code to connect an account to your platform and fetch the user's credentials.
        Parameters:
        params - the request parameters.
        options - the request options.
        Returns:
        the TokenResponse instance containing the response from the OAuth API.
        Throws:
        StripeException
      • deauthorize

        public static DeauthorizedAccount deauthorize​(java.util.Map<java.lang.String,​java.lang.Object> params,
                                                      RequestOptions options)
                                               throws StripeException
        Disconnects an account from your platform.
        Parameters:
        params - the request parameters.
        options - the request options.
        Returns:
        the DeauthorizedAccount instance containing the response from the OAuth API.
        Throws:
        StripeException