org.openstreetmap.josm.plugins.streetside.oauth

## Class OAuthUtils

- java.lang.Object
- - org.openstreetmap.josm.plugins.streetside.oauth.OAuthUtils

-     public final class OAuthUtils
      extends Object

  A set of utilities related to OAuth.

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `private` | `OAuthUtils()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static javax.json.JsonObject` | `getWithHeader(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`

- - ### Constructor Detail

    - #### OAuthUtils

          private OAuthUtils()

  - ### Method Detail

    - #### getWithHeader

          public static javax.json.JsonObject getWithHeader(URL url)
                                                     throws 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:
        `IOException` - Errors relating to the connection.

JOSM Plugins