Interface SigStructureSigner
- All Known Implementing Classes:
COSESigner
public interface SigStructureSigner
Signer to sign a Sig Structure.
- Since:
- 1.20
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
sign
(SigStructure structure, int algorithm) Generate a signature for the Sig Structure with the specified algorithm.
-
Method Details
-
sign
Generate a signature for the Sig Structure with the specified algorithm.- Parameters:
structure
- A Sig Structure for which a signature is generated.algorithm
- The integer identifier of an algorithm such as -7 (which meansES256
). Identifiers are listed in IANA: COSE Algorithms.- Returns:
- A generated signature.
- Throws:
COSEException
-