public enum SrpError extends Enum<SrpError>
Enum Constant and Description |
---|
BAD_PROOF_KEY |
INCORRECT_PAYLOAD_LENGTH |
NOT_CORRECT_SEQUENCE |
RESOURCE_ALLOCATION_ERROR |
UNABLE_OFFER_B |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static SrpError |
get(int id)
Retrieves the
SrpError for the given ID code. |
String |
getDescription()
Retrieves the
SrpError description. |
int |
getID()
Retrieves the
SrpError ID code. |
static SrpError |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SrpError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SrpError BAD_PROOF_KEY
public static final SrpError INCORRECT_PAYLOAD_LENGTH
public static final SrpError NOT_CORRECT_SEQUENCE
public static final SrpError RESOURCE_ALLOCATION_ERROR
public static final SrpError UNABLE_OFFER_B
public static SrpError get(int id)
SrpError
for the given ID code.id
- ID code to retrieve the SrpError
.SrpError
associated with the given ID code,
UNKNOWN
if there is not any SRP error associated
to the provided ID.public String getDescription()
SrpError
description.SrpError
description.public int getID()
SrpError
ID code.SrpError
ID code.public static SrpError 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 static SrpError[] values()
for (SrpError c : SrpError.values()) System.out.println(c);
© Copyright 2014 - 2024 Digi International Inc. All rights reserved.