public class Signer extends Attribute
| Modifier and Type | Field and Description |
|---|---|
protected String |
contextString |
protected byte[] |
rgbProtected |
protected byte[] |
rgbSignature |
DontSendAttributes, externalData, objDontSend, objProtected, objUnprotected, ProtectedAttributes, UnprotectedAttributes| Constructor and Description |
|---|
Signer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
DecodeFromCBORObject(com.upokecenter.cbor.CBORObject obj) |
protected com.upokecenter.cbor.CBORObject |
EncodeToCBORObject() |
void |
setKey(com.upokecenter.cbor.CBORObject cnKeyIn) |
void |
sign(byte[] rgbBodyProtected,
byte[] rgbContent) |
boolean |
validate(byte[] rgbBodyProtected,
byte[] rgbContent) |
addAttribute, addAttribute, addAttribute, AddProtected, AddProtected, AddProtected, AddUnprotected, AddUnprotected, AddUnprotected, findAttribute, findAttribute, setExternalprotected byte[] rgbSignature
protected byte[] rgbProtected
protected String contextString
public void setKey(com.upokecenter.cbor.CBORObject cnKeyIn)
protected void DecodeFromCBORObject(com.upokecenter.cbor.CBORObject obj)
throws CoseException
CoseExceptionprotected com.upokecenter.cbor.CBORObject EncodeToCBORObject()
public void sign(byte[] rgbBodyProtected,
byte[] rgbContent)
throws CoseException
CoseExceptionpublic boolean validate(byte[] rgbBodyProtected,
byte[] rgbContent)
throws CoseException
CoseExceptionCOSE for Java documentation, generatedin 2016.