public enum Mqtt5AuthReasonCode extends Enum<Mqtt5AuthReasonCode> implements Mqtt5ReasonCode
MQTT 5 Auth message.| Enum Constant and Description |
|---|
CONTINUE_AUTHENTICATION
Continue the authentication with another step.
|
REAUTHENTICATE
Initiate a re-authentication.
|
SUCCESS
Authentication is successful.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeSentByClient() |
boolean |
canBeSentByServer() |
static @Nullable Mqtt5AuthReasonCode |
fromCode(int code)
Returns the Auth Reason Code belonging to the given byte code.
|
int |
getCode() |
static Mqtt5AuthReasonCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Mqtt5AuthReasonCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcanBeSetByUser, isErrorpublic static final Mqtt5AuthReasonCode SUCCESS
public static final Mqtt5AuthReasonCode CONTINUE_AUTHENTICATION
public static final Mqtt5AuthReasonCode REAUTHENTICATE
public static Mqtt5AuthReasonCode[] values()
for (Mqtt5AuthReasonCode c : Mqtt5AuthReasonCode.values()) System.out.println(c);
public static Mqtt5AuthReasonCode 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 int getCode()
getCode in interface Mqtt5ReasonCode@Nullable public static @Nullable Mqtt5AuthReasonCode fromCode(int code)
code - the byte code.null if the byte code is not a
valid Auth Reason Code.public boolean canBeSentByServer()
canBeSentByServer in interface Mqtt5ReasonCodepublic boolean canBeSentByClient()
canBeSentByClient in interface Mqtt5ReasonCode