Enum Class StatusCode
- All Implemented Interfaces:
Serializable,Comparable<StatusCode>,Constable
This enum maps the ASN1 error coders as defined in StatusCode.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionintgetId()Gets the ASN1 constant for this status code.org.bouncycastle.asn1.ASN1EnumeratedtoAsn1()Returns the corresponding ASN1 enumeration.static StatusCodeReturns the enum constant of this class with the specified name.static StatusCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OK
-
TRANSFER_QUOTA_STATUS
-
MESSAGE_QUOTA_STATUS
-
PUZZLE_REQUIRED
-
TRANSFER_QUOTA_EXCEEDED
-
MESSAGE_QUOTA_EXCEEDED
-
IDENTITY_UNKNOWN
-
MESSAGE_CHUNK_MISSING
-
MESSAGE_LIFE_EXPIRED
-
PUZZLE_UNKNOWN
-
MAC_ALGORITHM_UNKNOWN
-
SYMMETRIC_ALGORITHM_UNKNOWN
-
ASYMMETRIC_ALGORITHM_UNKNOWN
-
PRNG_ALGORITHM_UNKNOWN
-
MISSING_PARAMETERS
-
BAD_PARAMETERS
-
HOST_ERROR
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getId
public int getId()Gets the ASN1 constant for this status code.
- Returns:
- the requested constant for ASN1 encoding
-
toAsn1
public org.bouncycastle.asn1.ASN1Enumerated toAsn1()Returns the corresponding ASN1 enumeration.
- Returns:
- the ASN1 enumeration representing this status
-