Enum COSEMessageType
- All Implemented Interfaces:
Serializable
,Comparable<COSEMessageType>
,java.lang.constant.Constable
COSE Message Type
- Since:
- 1.4
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCOSE Encrypted Data Object; Tag = 96COSE Single Recipient Encrypted Data Object; Tag = 16COSE MACed Data Object; Tag = 97COSE Mac w/o Recipients Object; Tag = 17COSE Signed Data Object; Tag = 98COSE Single Signer Data Object; Tag = 18 -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get the name of this COSE message.int
Get the tag number of this COSE message.static COSEMessageType
Returns the enum constant of this type with the specified name.static COSEMessageType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COSE_SIGN
COSE Signed Data Object; Tag = 98 -
COSE_SIGN1
COSE Single Signer Data Object; Tag = 18 -
COSE_ENCRYPT
COSE Encrypted Data Object; Tag = 96 -
COSE_ENCRYPT0
COSE Single Recipient Encrypted Data Object; Tag = 16 -
COSE_MAC
COSE MACed Data Object; Tag = 97 -
COSE_MAC0
COSE Mac w/o Recipients Object; Tag = 17
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getTagNumber
public int getTagNumber()Get the tag number of this COSE message.- Returns:
- The tag number.
-
getName
Get the name of this COSE message.- Returns:
- The name such as
"COSE_Sign1"
. - Since:
- 1.5
-