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(URL serverUrl)
Obtains an OAuth access token for the connection.
-
-
-
Method Detail
-
obtainAccessToken
void obtainAccessToken(URL serverUrl) throws InvocationTargetException, InterruptedException
Obtains an OAuth access token for the connection. Afterwards, the token is accessible viaOAuthAccessTokenHolder
.- Parameters:
serverUrl
- the URL to OSM server- Throws:
InterruptedException
- if we're interrupted while waiting for the event dispatching thread to finish OAuth authorization taskInvocationTargetException
- if an exception is thrown while running OAuth authorization task
-
-