public abstract class EncryptCommon extends Message
| Modifier and Type | Field and Description |
|---|---|
protected String |
context |
protected byte[] |
rgbEncrypt |
emitContent, emitTag, messageTag, rgbContentDO_NOT_SEND, DontSendAttributes, externalData, objDontSend, objProtected, objUnprotected, PROTECTED, ProtectedAttributes, rgbProtected, UNPROTECTED, UnprotectedAttributes| Constructor and Description |
|---|
EncryptCommon() |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
decryptWithKey(byte[] rgbKey) |
byte[] |
getEncryptedContent()
Used to obtain the encrypted content for the cases where detached content
is requested.
|
protected void |
ProcessCounterSignatures() |
void |
setEncryptedContent(byte[] rgb)
Set the encrypted content for detached content cases.
|
boolean |
validate(CounterSign countersignature) |
boolean |
validate(CounterSign1 countersignature) |
addCountersignature, DecodeFromBytes, DecodeFromBytes, DecodeFromCBORObject, EncodeCBORObject, EncodeToBytes, EncodeToCBORObject, GetContent, getCountersign1, getCountersignerList, HasContent, SetContent, SetContent, setCountersign1addAttribute, addAttribute, addAttribute, AddProtected, AddProtected, AddProtected, AddUnprotected, AddUnprotected, AddUnprotected, findAttribute, findAttribute, findAttribute, findAttribute, getDoNotSendAttributes, getExternal, getProtectedAttributes, getUnprotectedAttributes, removeAttribute, removeAttribute, setExternalprotected String context
protected byte[] rgbEncrypt
protected byte[] decryptWithKey(byte[] rgbKey)
throws CoseException
CoseExceptionpublic byte[] getEncryptedContent()
throws CoseException
CoseException - if content has not been encryptedpublic void setEncryptedContent(byte[] rgb)
rgb - encrypted content to be usedprotected void ProcessCounterSignatures()
throws CoseException
ProcessCounterSignatures in class MessageCoseExceptionpublic boolean validate(CounterSign1 countersignature) throws CoseException
validate in class MessageCoseExceptionpublic boolean validate(CounterSign countersignature) throws CoseException
validate in class MessageCoseExceptionCOSE for Java documentation, generatedin 2019.