public class MAC0Message extends MacCommon
random, rgbTag, strContextemitContent, emitTag, messageTag, rgbContentDO_NOT_SEND, DontSendAttributes, externalData, objDontSend, objProtected, objUnprotected, PROTECTED, ProtectedAttributes, rgbProtected, UNPROTECTED, UnprotectedAttributes| Constructor and Description |
|---|
MAC0Message() |
| Modifier and Type | Method and Description |
|---|---|
void |
Create(byte[] rgbKey) |
void |
DecodeFromCBORObject(com.upokecenter.cbor.CBORObject obj)
Given a CBOR tree, parse the message.
|
protected com.upokecenter.cbor.CBORObject |
EncodeCBORObject()
Encode the COSE message object to a CBORObject tree.
|
boolean |
Validate(byte[] rgbKey) |
AES_CBC_MAC, CreateWithKeyDecodeFromBytes, DecodeFromBytes, EncodeToBytes, EncodeToCBORObject, GetContent, HasContent, SetContent, SetContentaddAttribute, addAttribute, addAttribute, AddProtected, AddProtected, AddProtected, AddUnprotected, AddUnprotected, AddUnprotected, findAttribute, findAttribute, findAttribute, findAttribute, getDoNotSendAttributes, getExternal, getProtectedAttributes, getUnprotectedAttributes, removeAttribute, removeAttribute, setExternalpublic void DecodeFromCBORObject(com.upokecenter.cbor.CBORObject obj)
throws CoseException
MessageDecodeFromCBORObject in class Messageobj - CBORObject to be converted to a message.CoseExceptionprotected com.upokecenter.cbor.CBORObject EncodeCBORObject()
throws CoseException
MessageEncodeCBORObject in class MessageCoseExceptionpublic void Create(byte[] rgbKey)
throws CoseException
CoseExceptionpublic boolean Validate(byte[] rgbKey)
throws CoseException
Validate in class MacCommonCoseExceptionCOSE for Java documentation, generatedin 2018.