Enum Class StatusCode

java.lang.Object
java.lang.Enum<StatusCode>
net.messagevortex.asn1.encryption.StatusCode
All Implemented Interfaces:
Serializable, Comparable<StatusCode>, Constable

public enum StatusCode extends Enum<StatusCode>
This enum maps the ASN1 error coders as defined in StatusCode.
  • Enum Constant Details

    • OK

      public static final StatusCode OK
    • TRANSFER_QUOTA_STATUS

      public static final StatusCode TRANSFER_QUOTA_STATUS
    • MESSAGE_QUOTA_STATUS

      public static final StatusCode MESSAGE_QUOTA_STATUS
    • PUZZLE_REQUIRED

      public static final StatusCode PUZZLE_REQUIRED
    • TRANSFER_QUOTA_EXCEEDED

      public static final StatusCode TRANSFER_QUOTA_EXCEEDED
    • MESSAGE_QUOTA_EXCEEDED

      public static final StatusCode MESSAGE_QUOTA_EXCEEDED
    • IDENTITY_UNKNOWN

      public static final StatusCode IDENTITY_UNKNOWN
    • MESSAGE_CHUNK_MISSING

      public static final StatusCode MESSAGE_CHUNK_MISSING
    • MESSAGE_LIFE_EXPIRED

      public static final StatusCode MESSAGE_LIFE_EXPIRED
    • PUZZLE_UNKNOWN

      public static final StatusCode PUZZLE_UNKNOWN
    • MAC_ALGORITHM_UNKNOWN

      public static final StatusCode MAC_ALGORITHM_UNKNOWN
    • SYMMETRIC_ALGORITHM_UNKNOWN

      public static final StatusCode SYMMETRIC_ALGORITHM_UNKNOWN
    • ASYMMETRIC_ALGORITHM_UNKNOWN

      public static final StatusCode ASYMMETRIC_ALGORITHM_UNKNOWN
    • PRNG_ALGORITHM_UNKNOWN

      public static final StatusCode PRNG_ALGORITHM_UNKNOWN
    • MISSING_PARAMETERS

      public static final StatusCode MISSING_PARAMETERS
    • BAD_PARAMETERS

      public static final StatusCode BAD_PARAMETERS
    • HOST_ERROR

      public static final StatusCode HOST_ERROR
  • Method Details

    • values

      public static StatusCode[] 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

      public static StatusCode valueOf(String name)
      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 name
      NullPointerException - 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