Interface OsmConnection.OAuthAccessTokenFetcher

    • 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 via OAuthAccessTokenHolder.
        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 task
        java.lang.reflect.InvocationTargetException - if an exception is thrown while running OAuth authorization task