Interface MTCCosignerVerifier
- All Superinterfaces:
ContentVerifier
Operator that verifies a single cosigner's signature over a CosignedMessage
as defined by Section 5.3.1 of
draft-ietf-plants-merkle-tree-certs.
Implementations encapsulate the cosigner's public key and the algorithm
choice. As a ContentVerifier, callers feed the already-encoded
CosignedMessage bytes (e.g. via MTCCosignedMessage.encode(byte[], long, long, byte[], byte[])) through
ContentVerifier.getOutputStream() and then call ContentVerifier.verify(byte[]) with the
candidate signature.
- See Also:
-
Method Summary
Methods inherited from interface ContentVerifier
getAlgorithmIdentifier, getOutputStream, verify
-
Method Details
-
getCosignerId
byte[] getCosignerId()- Returns:
- the binary trust anchor ID of the cosigner this verifier is
bound to — the key under which it was registered with its
MTCCosignerVerifierProvider. Consumers counting cosignatures use this to confirm a signature'scosigner_idnames the identity of the key it is checked against, rather than relying solely on thecosigner_namebinding inside the CosignedMessage.
-