public class Recipient extends Message
emitContent, emitTag, messageTag, rgbContentDontSendAttributes, externalData, objDontSend, objProtected, objUnprotected, ProtectedAttributes, rgbProtected, UnprotectedAttributes| Constructor and Description |
|---|
Recipient() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRecipient(Recipient recipient) |
void |
DecodeFromCBORObject(com.upokecenter.cbor.CBORObject objRecipient) |
byte[] |
decrypt(AlgorithmID algCEK,
Recipient recip) |
protected com.upokecenter.cbor.CBORObject |
EncodeCBORObject() |
void |
encrypt() |
byte[] |
getKey(AlgorithmID algCEK) |
Recipient |
getRecipient(int iRecipient) |
int |
getRecipientCount() |
List<Recipient> |
getRecipientList() |
int |
getRecipientType() |
void |
SetKey(com.upokecenter.cbor.CBORObject key) |
void |
SetSenderKey(com.upokecenter.cbor.CBORObject key) |
DecodeFromBytes, DecodeFromBytes, EncodeToBytes, EncodeToCBORObject, GetContent, SetContent, SetContentaddAttribute, addAttribute, addAttribute, AddProtected, AddProtected, AddProtected, AddUnprotected, AddUnprotected, AddUnprotected, findAttribute, findAttribute, setExternalpublic void DecodeFromCBORObject(com.upokecenter.cbor.CBORObject objRecipient)
throws CoseException
DecodeFromCBORObject in class MessageCoseExceptionprotected com.upokecenter.cbor.CBORObject EncodeCBORObject()
throws CoseException
EncodeCBORObject in class MessageCoseExceptionpublic byte[] decrypt(AlgorithmID algCEK, Recipient recip) throws CoseException, org.bouncycastle.crypto.InvalidCipherTextException
CoseExceptionorg.bouncycastle.crypto.InvalidCipherTextExceptionpublic void encrypt()
throws CoseException,
Exception
CoseExceptionExceptionpublic void addRecipient(Recipient recipient)
public Recipient getRecipient(int iRecipient)
public int getRecipientCount()
public int getRecipientType()
throws CoseException
CoseExceptionpublic byte[] getKey(AlgorithmID algCEK) throws CoseException, Exception
CoseExceptionExceptionpublic void SetKey(com.upokecenter.cbor.CBORObject key)
public void SetSenderKey(com.upokecenter.cbor.CBORObject key)
COSE for Java documentation, generatedin 2016.