Class MTCCosignature

java.lang.Object
org.bouncycastle.cert.plants.MTCCosignature
Direct Known Subclasses:
MTCSignature

public class MTCCosignature extends Object
A single cosigner signature, as it appears inside the TLS-encoded MTCProof defined by draft-ietf-plants-merkle-tree-certs, Section 6.2:
struct {
    TrustAnchorID cosigner_id;
    opaque signature<0..2^16-1>;
} Cosignature;

opaque TrustAnchorID<1..2^8-1>;

The draft names this structure Cosignature since draft-06 (it was MTCSignature before); the deprecated MTCSignature is the old class name.

The cosigner ID is the binary trust anchor ID per Section 4 of draft-ietf-tls-trust-anchor-ids — the base-128 OID-component bytes only, without the ASN.1 RELATIVE-OID tag or length octets. See TrustAnchorIDs for converting to/from the dotted-decimal form.

  • Constructor Details

    • MTCCosignature

      public MTCCosignature(byte[] cosignerId, byte[] signature)
      Parameters:
      cosignerId - binary trust anchor ID (1..255 bytes)
      signature - raw signature value (0..65535 bytes)
  • Method Details

    • getCosignerId

      public byte[] getCosignerId()
      Returns:
      the binary trust anchor ID of the cosigner
    • getSignature

      public byte[] getSignature()
      Returns:
      the raw signature value