Package org.openstreetmap.josm.gui.oauth
Enum Class AuthorizationProcedure
- All Implemented Interfaces:
Serializable,Comparable<AuthorizationProcedure>,Constable
The type of procedure to use for retrieving OAuth credentials.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRun a fully automatic procedure to get an access token from the OSM website.Enter an Access Token manually.Run a semi-automatic procedure to get an access token from the OSM website. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a translated description of this proceduregetText()Returns the translated name of this procedurestatic AuthorizationProcedureReturns the enum constant of this class with the specified name.static AuthorizationProcedure[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FULLY_AUTOMATIC
Run a fully automatic procedure to get an access token from the OSM website. JOSM accesses the OSM website on behalf of the JOSM user and interacts with the site using an OSM session, form posting and screen scraping. -
SEMI_AUTOMATIC
Run a semi-automatic procedure to get an access token from the OSM website. JOSM submits the standards OAuth requests to get a Request Token and an Access Token. It dispatches the user to the OSM website in an external browser to authenticate itself and to accept the request token submitted by JOSM. -
MANUALLY
Enter an Access Token manually. The Access Token could have been generated by another JOSM user and sent to the current JOSM user via email, i.e. in order to grant the current OSM user the right download its private GPS traces. Or it could have been generated in a former session and filed away in a secure place.
-
-
Constructor Details
-
AuthorizationProcedure
private AuthorizationProcedure()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getText
Returns the translated name of this procedure- Returns:
- the translated name of this procedure
-
getDescription
Returns a translated description of this procedure- Returns:
- a translated description of this procedure
-