001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.gui.oauth;
003
004/**
005 * The type of procedure to use for retrieving OAuth credentials.
006 */
007public enum AuthorizationProcedure {
008    /**
009     * Run a fully automatic procedure to get an access token from the OSM website.
010     * JOSM accesses the OSM website on behalf of the JOSM user and interacts
011     * with the site using an OSM session, form posting and screen scraping.
012     */
013    FULLY_AUTOMATIC,
014
015    /**
016     * Run a semi-automatic procedure to get an access token from the OSM website.
017     * JOSM submits the standards OAuth requests to get a Request Token and an
018     * Access Token. It dispatches the user to the OSM website in an external browser
019     * to authenticate itself and to accept the request token submitted by JOSM.
020     */
021    SEMI_AUTOMATIC,
022
023    /**
024     * Enter an Access Token manually. The Access Token could have been generated
025     * by another JOSM user and sent to the current JOSM user via email, i.e. in order
026     * to grant the current OSM user the right download its private GPS traces. Or it could
027     * have been generated in a former session and filed away in a secure place.
028     */
029    MANUALLY
030}