Package org.openstreetmap.josm.io
Interface OsmConnection.OAuthAccessTokenFetcher
-
- Enclosing class:
- OsmConnection
public static interface OsmConnection.OAuthAccessTokenFetcher
Retrieves OAuth access token.- Since:
- 12803
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
obtainAccessToken(java.net.URL serverUrl)
Obtains an OAuth access token for the connection.
-
-
-
Method Detail
-
obtainAccessToken
void obtainAccessToken(java.net.URL serverUrl) throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException
Obtains an OAuth access token for the connection. Afterwards, the token is accessible viaOAuthAccessTokenHolder
.- Parameters:
serverUrl
- the URL to OSM server- Throws:
java.lang.InterruptedException
- if we're interrupted while waiting for the event dispatching thread to finish OAuth authorization taskjava.lang.reflect.InvocationTargetException
- if an exception is thrown while running OAuth authorization task
-
-