public enum DeviceSdkType extends Enum<DeviceSdkType>
| Enum Constant and Description |
|---|
NONE_COUNTER
NONE_COUNTER device sdk type
It specifies that the device will not check message counter to against replay attack.
|
NONE_RTC
NONE_RTC device sdk type
Message replay attack will be check by none_rtc counter method,
in which the counter may be an increased int value.
|
RTC
RTC device sdk type
Message replay attack will be check by rtc counter method,
in which the counter may be an timestamp in seconds generated from rtc.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getStatusCode()
Get status code of related device sdk type
|
static DeviceSdkType |
parse(String value)
Parse string type status code to corresponding device sdk type
|
static DeviceSdkType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DeviceSdkType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeviceSdkType NONE_RTC
public static final DeviceSdkType RTC
public static final DeviceSdkType NONE_COUNTER
public static DeviceSdkType[] values()
for (DeviceSdkType c : DeviceSdkType.values()) System.out.println(c);
public static DeviceSdkType 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 getStatusCode()
public static DeviceSdkType parse(String value)
value - string type status codeCopyright © 2023. All rights reserved.