Package io.jans.fido2.model.u2f.error
Enum Fido2ErrorResponseType
- java.lang.Object
-
- java.lang.Enum<Fido2ErrorResponseType>
-
- io.jans.fido2.model.u2f.error.Fido2ErrorResponseType
-
- All Implemented Interfaces:
io.jans.as.model.error.IErrorType
,Serializable
,Comparable<Fido2ErrorResponseType>
public enum Fido2ErrorResponseType extends Enum<Fido2ErrorResponseType> implements io.jans.as.model.error.IErrorType
Error codes for fido2 error responses.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_REQUEST_INTERCEPTION
The request is missing a required parameter, username or keyhandleINVALID_ID_SESSION
The request is missing a required parameter, includes an invalid parameter value or is otherwise malformed id_session.INVALID_USERNAME_OR_KEYHANDLE
The request is missing a required parameter, username or keyhandle
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getParameter()
Gets error parameter.String
toString()
Returns a string representation of the object.static Fido2ErrorResponseType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Fido2ErrorResponseType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INVALID_ID_SESSION
public static final Fido2ErrorResponseType INVALID_ID_SESSION
The request is missing a required parameter, includes an invalid parameter value or is otherwise malformed id_session.
-
INVALID_USERNAME_OR_KEYHANDLE
public static final Fido2ErrorResponseType INVALID_USERNAME_OR_KEYHANDLE
The request is missing a required parameter, username or keyhandle
-
BAD_REQUEST_INTERCEPTION
public static final Fido2ErrorResponseType BAD_REQUEST_INTERCEPTION
The request is missing a required parameter, username or keyhandle
-
-
Method Detail
-
values
public static Fido2ErrorResponseType[] 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 (Fido2ErrorResponseType c : Fido2ErrorResponseType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Fido2ErrorResponseType 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
-
toString
public String toString()
Returns a string representation of the object. In this case, the lower case code of the error.- Overrides:
toString
in classEnum<Fido2ErrorResponseType>
-
getParameter
public String getParameter()
Gets error parameter.- Specified by:
getParameter
in interfaceio.jans.as.model.error.IErrorType
- Returns:
- error parameter
-
-