Class MTCSignature
java.lang.Object
org.bouncycastle.cert.plants.MTCSignature
A single cosigner signature, as it appears inside the TLS-encoded MTCProof
defined by
draft-ietf-plants-merkle-tree-certs, Section 6.1:
struct {
TrustAnchorID cosigner_id;
opaque signature<0..2^16-1>;
} MTCSignature;
opaque TrustAnchorID<1..2^8-1>;
The cosigner ID is the binary trust anchor ID per Section 3 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 Summary
Constructors -
Method Summary
-
Constructor Details
-
MTCSignature
public MTCSignature(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
-