public class MACMessage extends MacCommon
| Modifier and Type | Field and Description |
|---|---|
protected List<Recipient> |
recipientList |
random, rgbTag, strContextemitContent, emitTag, messageTag, rgbContentDO_NOT_SEND, DontSendAttributes, externalData, objDontSend, objProtected, objUnprotected, PROTECTED, ProtectedAttributes, rgbProtected, UNPROTECTED, UnprotectedAttributes| Constructor and Description |
|---|
MACMessage() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRecipient(Recipient recipient) |
void |
Create() |
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.
|
Recipient |
getRecipient(int iRecipient) |
int |
getRecipientCount() |
List<Recipient> |
getRecipientList() |
boolean |
Validate(Recipient recipientToUse) |
AES_CBC_MAC, CreateWithKey, ValidateDecodeFromBytes, 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 addRecipient(Recipient recipient)
public Recipient getRecipient(int iRecipient)
public int getRecipientCount()
public 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 boolean Validate(Recipient recipientToUse) throws CoseException, org.bouncycastle.crypto.InvalidCipherTextException
CoseExceptionorg.bouncycastle.crypto.InvalidCipherTextExceptionpublic void Create()
throws CoseException,
IllegalStateException,
org.bouncycastle.crypto.InvalidCipherTextException,
Exception
CoseExceptionIllegalStateExceptionorg.bouncycastle.crypto.InvalidCipherTextExceptionExceptionCOSE for Java documentation, generatedin 2016.