Package org.openstreetmap.josm.io
Interface OsmConnection.OAuthAccessTokenFetcher
-
- Enclosing class:
- OsmConnection
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface OsmConnection.OAuthAccessTokenFetcher
Retrieves OAuth access token.- Since:
- 12803
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidobtainAccessToken(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
-
-