Class COSEHeaderParameters
java.lang.Object
com.authlete.cose.constants.COSEHeaderParameters
COSE Header Parameters
Name Label Value Type Description Reference alg1 int / tstr Cryptographic algorithm to use RFC 9052 crit2 [+ label] Critical headers to be understood RFC 9052 content type3 tstr / uint Content type of the payload RFC 9052 kid4 bstr Key identifier RFC 9052 IV5 bstr Full Initialization Vector RFC 9052 Partial IV6 bstr Partial Initialization Vector RFC 9052 x5chain33 COSE_X509 An ordered chain of X.509 certificates RFC 9360
- Since:
- 1.1
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intalg (1)static final intcontent type (3)static final intcrit (2)static final intIV (5)static final intkid (4)static final intPartial IV (6)static final intx5chain (33) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetNameByValue(int value) Get the name of the header parameter to which the integer identifier has been assigned to.
-
Field Details
-
ALG
public static final int ALGalg (1)- See Also:
-
CRIT
public static final int CRITcrit (2)- See Also:
-
CONTENT_TYPE
public static final int CONTENT_TYPEcontent type (3)- See Also:
-
KID
public static final int KIDkid (4)- See Also:
-
IV
public static final int IVIV (5)- See Also:
-
PARTIAL_IV
public static final int PARTIAL_IVPartial IV (6)- See Also:
-
X5CHAIN
public static final int X5CHAINx5chain (33)- Since:
- 1.2
- See Also:
-
-
Method Details
-
getNameByValue
Get the name of the header parameter to which the integer identifier has been assigned to.- Parameters:
value- An integer identifier assigned to a header parameter.- Returns:
- The name of the header parameter to which the integer identifier
has been assigned to. If the given identifier is not recognized,
nullis returned. - Since:
- 1.5
-