Class TokenResponse

    • Method Detail

      • parse

        public static TokenResponse parse​(net.minidev.json.JSONObject jsonObject)
                                   throws ParseException
        Parses a token response from the specified JSON object.
        Parameters:
        jsonObject - The JSON object to parse. Must not be null.
        Returns:
        The access token or token error response.
        Throws:
        ParseException - If the JSON object couldn't be parsed to a token response.
      • parse

        public static TokenResponse parse​(HTTPResponse httpResponse)
                                   throws ParseException
        Parses a token response from the specified HTTP response.
        Parameters:
        httpResponse - The HTTP response. Must not be null.
        Returns:
        The access token or token error response.
        Throws:
        ParseException - If the HTTP response couldn't be parsed to a token response.