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.
Retrieves OAuth access token.
- Since:
- 12803
-
Method Summary
Modifier and TypeMethodDescriptionvoidobtainAccessToken(URL serverUrl) Obtains an OAuth access token for the connection.
-
Method Details
-
obtainAccessToken
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
-