Package COSE
Class CounterSign
- java.lang.Object
-
- COSE.Attribute
-
- COSE.Signer
-
- COSE.CounterSign
-
public class CounterSign extends Signer
- Author:
- jimsch
-
-
Field Summary
-
Fields inherited from class COSE.Signer
contextString, rgbSignature
-
Fields inherited from class COSE.Attribute
DO_NOT_SEND, DontSendAttributes, externalData, objDontSend, objProtected, objUnprotected, PROTECTED, ProtectedAttributes, rgbProtected, UNPROTECTED, UnprotectedAttributes
-
-
Constructor Summary
Constructors Constructor Description CounterSign()CounterSign(byte[] rgb)CounterSign(com.upokecenter.cbor.CBORObject cbor)
-
Method Summary
Modifier and Type Method Description voidDecodeFromBytes(byte[] rgb)byte[]EncodeToBytes()voidsetObject(Message msg)voidsetObject(Signer signer)voidSign(Message message)booleanValidate(Message message)-
Methods inherited from class COSE.Signer
addCountersignature, clearKey, DecodeFromCBORObject, EncodeToCBORObject, getCountersign1, getCountersignerList, ProcessCounterSignatures, setCountersign1, setKey, sign, validate, validate, validate
-
Methods inherited from class COSE.Attribute
addAttribute, addAttribute, addAttribute, AddProtected, AddProtected, AddProtected, AddUnprotected, AddUnprotected, AddUnprotected, findAttribute, findAttribute, findAttribute, findAttribute, getDoNotSendAttributes, getExternal, getProtectedAttributes, getUnprotectedAttributes, removeAttribute, removeAttribute, setExternal
-
-
-
-
Constructor Detail
-
CounterSign
public CounterSign()
-
CounterSign
public CounterSign(byte[] rgb) throws CoseException- Throws:
CoseException
-
CounterSign
public CounterSign(com.upokecenter.cbor.CBORObject cbor) throws CoseException- Throws:
CoseException
-
-
Method Detail
-
DecodeFromBytes
public void DecodeFromBytes(byte[] rgb) throws CoseException- Throws:
CoseException
-
EncodeToBytes
public byte[] EncodeToBytes() throws CoseException- Throws:
CoseException
-
Sign
public void Sign(Message message) throws CoseException
- Throws:
CoseException
-
Validate
public boolean Validate(Message message) throws CoseException
- Throws:
CoseException
-
setObject
public void setObject(Message msg)
-
setObject
public void setObject(Signer signer)
-
-