Interface SigStructureSigner

All Known Implementing Classes:
COSESigner

public interface SigStructureSigner
Signer to sign a Sig Structure.
Since:
1.20
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    sign(SigStructure structure, int algorithm)
    Generate a signature for the Sig Structure with the specified algorithm.
  • Method Details

    • sign

      byte[] sign(SigStructure structure, int algorithm) throws COSEException
      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 means ES256). Identifiers are listed in IANA: COSE Algorithms.
      Returns:
      A generated signature.
      Throws:
      COSEException