Package COSE
Class CounterSign1
- java.lang.Object
-
- COSE.Attribute
-
- COSE.Signer
-
- COSE.CounterSign1
-
public class CounterSign1 extends Signer
- Author:
- Jim
-
-
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 CounterSign1()CounterSign1(byte[] rgb)CounterSign1(OneKey key)
-
Method Summary
Modifier and Type Method Description voidDecodeFromCBORObject(com.upokecenter.cbor.CBORObject cbor)Internal function used in creating a Sign1Message object from a byte string.com.upokecenter.cbor.CBORObjectEncodeToCBORObject()Internal function used to create a serialization of a COSE_Sign1 messagevoidsetKey(OneKey key)Set a key object on a signervoidsetObject(Message msg)voidsetObject(Signer signer)-
Methods inherited from class COSE.Signer
addCountersignature, clearKey, getCountersign1, getCountersignerList, ProcessCounterSignatures, setCountersign1, 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
-
CounterSign1
public CounterSign1()
-
CounterSign1
public CounterSign1(byte[] rgb)
-
CounterSign1
public CounterSign1(OneKey key)
-
-
Method Detail
-
setObject
public void setObject(Message msg)
-
setObject
public void setObject(Signer signer)
-
setKey
public void setKey(OneKey key)
Description copied from class:SignerSet a key object on a signer
-
DecodeFromCBORObject
public void DecodeFromCBORObject(com.upokecenter.cbor.CBORObject cbor) throws CoseExceptionDescription copied from class:SignerInternal function used in creating a Sign1Message object from a byte string.- Overrides:
DecodeFromCBORObjectin classSigner- Parameters:
cbor- COSE_Sign1 encoded object.- Throws:
CoseException- Errors generated by the COSE module
-
EncodeToCBORObject
public com.upokecenter.cbor.CBORObject EncodeToCBORObject() throws CoseExceptionDescription copied from class:SignerInternal function used to create a serialization of a COSE_Sign1 message- Overrides:
EncodeToCBORObjectin classSigner- Returns:
- CBOR object which can be encoded.
- Throws:
CoseException- Errors generated by the COSE module
-
-