Package COSE
Enum MessageTag
- java.lang.Object
-
- java.lang.Enum<MessageTag>
-
- COSE.MessageTag
-
- All Implemented Interfaces:
Serializable,Comparable<MessageTag>,java.lang.constant.Constable
public enum MessageTag extends Enum<MessageTag>
- Author:
- jimsch
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Field Summary
Fields Modifier and Type Field Description intvalue
-
Method Summary
Modifier and Type Method Description static MessageTagFromInt(int i)static MessageTagvalueOf(String name)Returns the enum constant of this type with the specified name.static MessageTag[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Unknown
public static final MessageTag Unknown
-
Encrypt0
public static final MessageTag Encrypt0
-
Encrypt
public static final MessageTag Encrypt
-
Sign1
public static final MessageTag Sign1
-
Sign
public static final MessageTag Sign
-
MAC
public static final MessageTag MAC
-
MAC0
public static final MessageTag MAC0
-
-
Method Detail
-
values
public static MessageTag[] 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 MessageTag 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 nameNullPointerException- if the argument is null
-
FromInt
public static MessageTag FromInt(int i) throws CoseException
- Throws:
CoseException
-
-