Enum OAuth20Exception.Type
- java.lang.Object
-
- java.lang.Enum<OAuth20Exception.Type>
-
- org.openstreetmap.josm.data.oauth.OAuth20Exception.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<OAuth20Exception.Type>
- Enclosing class:
- OAuth20Exception
public static enum OAuth20Exception.Type extends java.lang.Enum<OAuth20Exception.Type>
Invalid request types
-
-
Enum Constant Summary
Enum Constants Enum Constant Description invalid_client
invalid_grant
invalid_request
invalid_scope
unauthorized_client
unknown
unsupported_grant_type
-
Constructor Summary
Constructors Modifier Constructor Description private
Type()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OAuth20Exception.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static OAuth20Exception.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
invalid_request
public static final OAuth20Exception.Type invalid_request
-
invalid_client
public static final OAuth20Exception.Type invalid_client
-
invalid_grant
public static final OAuth20Exception.Type invalid_grant
-
unauthorized_client
public static final OAuth20Exception.Type unauthorized_client
-
unsupported_grant_type
public static final OAuth20Exception.Type unsupported_grant_type
-
invalid_scope
public static final OAuth20Exception.Type invalid_scope
-
unknown
public static final OAuth20Exception.Type unknown
-
-
Constructor Detail
-
Type
private Type()
-
-
Method Detail
-
values
public static OAuth20Exception.Type[] 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 (OAuth20Exception.Type c : OAuth20Exception.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OAuth20Exception.Type 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
-
-