Enum COSEMessageType

java.lang.Object
java.lang.Enum<COSEMessageType>
com.authlete.cose.COSEMessageType
All Implemented Interfaces:
Serializable, Comparable<COSEMessageType>, java.lang.constant.Constable

public enum COSEMessageType extends Enum<COSEMessageType>
COSE Message Type
Since:
1.4
See Also:
  • Enum Constant Details

    • COSE_SIGN

      public static final COSEMessageType COSE_SIGN
      COSE Signed Data Object; Tag = 98
    • COSE_SIGN1

      public static final COSEMessageType COSE_SIGN1
      COSE Single Signer Data Object; Tag = 18
    • COSE_ENCRYPT

      public static final COSEMessageType COSE_ENCRYPT
      COSE Encrypted Data Object; Tag = 96
    • COSE_ENCRYPT0

      public static final COSEMessageType COSE_ENCRYPT0
      COSE Single Recipient Encrypted Data Object; Tag = 16
    • COSE_MAC

      public static final COSEMessageType COSE_MAC
      COSE MACed Data Object; Tag = 97
    • COSE_MAC0

      public static final COSEMessageType COSE_MAC0
      COSE Mac w/o Recipients Object; Tag = 17
  • Method Details

    • values

      public static COSEMessageType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static COSEMessageType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getTagNumber

      public int getTagNumber()
      Get the tag number of this COSE message.
      Returns:
      The tag number.
    • getName

      public String getName()
      Get the name of this COSE message.
      Returns:
      The name such as "COSE_Sign1".
      Since:
      1.5