Class OAuthUtils
- java.lang.Object
-
- org.openstreetmap.josm.plugins.streetside.oauth.OAuthUtils
-
public final class OAuthUtils extends java.lang.Object
A set of utilities related to OAuth.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateOAuthUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.json.JsonObjectgetWithHeader(java.net.URL url)Returns a JsonObject containing the result of making a GET request with the authorization header.
-
-
-
Constructor Detail
-
OAuthUtils
private OAuthUtils()
-
-
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- TheURLwhere the request must be made.- Returns:
- A JsonObject containing the result of the GET request.
- Throws:
java.io.IOException- Errors relating to the connection.
-
-