Enum OAuthVersion
- java.lang.Object
-
- java.lang.Enum<OAuthVersion>
-
- org.openstreetmap.josm.data.oauth.OAuthVersion
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<OAuthVersion>
public enum OAuthVersion extends java.lang.Enum<OAuthVersion>
The OAuth versions ordered oldest to newest- Since:
- 18650
-
-
Constructor Summary
Constructors Modifier Constructor Description private
OAuthVersion()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OAuthVersion
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static OAuthVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OAuth10a
@Deprecated public static final OAuthVersion OAuth10a
Deprecated.The OSM API server has deprecated and will remove OAuth 1.0a support in June 2024.
-
OAuth20
public static final OAuthVersion OAuth20
-
OAuth21
public static final OAuthVersion OAuth21
-
-
Constructor Detail
-
OAuthVersion
private OAuthVersion()
-
-
Method Detail
-
values
public static OAuthVersion[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OAuthVersion c : OAuthVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OAuthVersion valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-