Class OAuthUtils


  • public final class OAuthUtils
    extends java.lang.Object
    A set of utilities related to OAuth.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private OAuthUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.json.JsonObject getWithHeader​(java.net.URL url)
      Returns a JsonObject containing the result of making a GET request with the authorization header.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getWithHeader

        public static javax.json.JsonObject getWithHeader​(java.net.URL url)
                                                   throws java.io.IOException
        Returns a JsonObject containing the result of making a GET request with the authorization header.
        Parameters:
        url - The URL where the request must be made.
        Returns:
        A JsonObject containing the result of the GET request.
        Throws:
        java.io.IOException - Errors relating to the connection.