public enum ResponseStatus extends Enum<ResponseStatus>
Enum Constant and Description |
---|
BACKEND_ERROR |
BAD_OTP |
BAD_SIGNATURE |
MISSING_PARAMETER |
NO_SUCH_CLIENT |
NOT_ENOUGH_ANSWERS |
OK |
OPERATION_NOT_ALLOWED |
REPLAYED_OTP |
REPLAYED_REQUEST |
Modifier and Type | Method and Description |
---|---|
boolean |
isError() |
static ResponseStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResponseStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseStatus OK
public static final ResponseStatus BAD_OTP
public static final ResponseStatus REPLAYED_OTP
public static final ResponseStatus BAD_SIGNATURE
public static final ResponseStatus MISSING_PARAMETER
public static final ResponseStatus NO_SUCH_CLIENT
public static final ResponseStatus OPERATION_NOT_ALLOWED
public static final ResponseStatus BACKEND_ERROR
public static final ResponseStatus NOT_ENOUGH_ANSWERS
public static final ResponseStatus REPLAYED_REQUEST
public static ResponseStatus[] values()
for (ResponseStatus c : ResponseStatus.values()) System.out.println(c);
public static ResponseStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isError()
Copyright © 2020 Yubico AB. All Rights Reserved.