Enum BearerError
- java.lang.Object
-
- java.lang.Enum<BearerError>
-
- org.apache.archiva.redback.authentication.jwt.BearerError
-
- All Implemented Interfaces:
Serializable
,Comparable<BearerError>
public enum BearerError extends Enum<BearerError>
- Author:
- Martin Stockhammer
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSUFFICIENT_SCOPE
INVALID_REQUEST
INVALID_TOKEN
-
Field Summary
Fields Modifier and Type Field Description protected String
errorString
protected int
id
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BearerError
get(int id)
String
getError()
int
getId()
static BearerError
valueOf(String name)
Returns the enum constant of this type with the specified name.static BearerError[]
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 BearerError INVALID_REQUEST
-
INVALID_TOKEN
public static final BearerError INVALID_TOKEN
-
INSUFFICIENT_SCOPE
public static final BearerError INSUFFICIENT_SCOPE
-
-
Field Detail
-
errorString
protected String errorString
-
id
protected int id
-
-
Method Detail
-
values
public static BearerError[] 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 (BearerError c : BearerError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BearerError valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getId
public int getId()
-
get
public static BearerError get(int id)
-
-