Class COSEHeaderParameters
java.lang.Object
com.authlete.cose.constants.COSEHeaderParameters
COSE Header Parameters
Name Label Value Type Description Reference alg
1 int / tstr Cryptographic algorithm to use RFC 9052 crit
2 [+ label] Critical headers to be understood RFC 9052 content type
3 tstr / uint Content type of the payload RFC 9052 kid
4 bstr Key identifier RFC 9052 IV
5 bstr Full Initialization Vector RFC 9052 Partial IV
6 bstr Partial Initialization Vector RFC 9052 x5chain
33 COSE_X509 An ordered chain of X.509 certificates RFC 9360
- Since:
- 1.1
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
alg (1)static final int
content type (3)static final int
crit (2)static final int
IV (5)static final int
kid (4)static final int
Partial IV (6)static final int
x5chain (33) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getNameByValue
(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,
null
is returned. - Since:
- 1.5
-