Class MTCLogEntryExtension

java.lang.Object
org.bouncycastle.cert.plants.MTCLogEntryExtension
Direct Known Subclasses:
MerkleTreeCertEntryExtension

public class MTCLogEntryExtension extends Object
A single Merkle Tree certificate log-entry extension, per Section 5.2.1 of draft-ietf-plants-merkle-tree-certs:
struct {
    MTCLogEntryExtensionType extension_type;
    opaque extension_data<0..2^16-1>;
} MTCLogEntryExtension;

draft-06 renamed this structure from MerkleTreeCertEntryExtension to MTCLogEntryExtension; the deprecated MerkleTreeCertEntryExtension is the old name. The extension_type is a uint16 (the draft assigns no concrete values; Section 13.2.2 sets up an IANA registry, with 0xF000-0xFFFF reserved for private use) and extension_data is opaque<0..65535>. Extensions carried inside a MTCProof or hashed into a log entry MUST appear in ascending order by extension_type with no duplicates; the MTCProof encoder/decoder enforces this.

  • Constructor Details

    • MTCLogEntryExtension

      public MTCLogEntryExtension(int extensionType, byte[] extensionData)
      Parameters:
      extensionType - the MTCLogEntryExtensionType value (uint16, 0..65535)
      extensionData - the extension_data bytes (0..65535 long)
      Throws:
      IllegalArgumentException - on out-of-range type, oversize data, or null inputs
  • Method Details

    • getExtensionType

      public int getExtensionType()
    • getExtensionData

      public byte[] getExtensionData()