Class BcMTCCosignerVerifierProvider

    • Method Detail

      • singleCosigner

        public static BcMTCCosignerVerifierProvider singleCosigner​(byte[] cosignerId,
                                                                   MTCSignatureVerifier verifier)
        Convenience factory for the single-cosigner case — wraps Builder().addCosigner(cosignerId, verifier).build(). Suitable when the relying party trusts exactly one cosigner (e.g. the CA itself, per Section 5.3 of draft-ietf-plants-merkle-tree-certs).
      • singleCosigner

        public static BcMTCCosignerVerifierProvider singleCosigner​(byte[] cosignerId,
                                                                   org.bouncycastle.crypto.params.AsymmetricKeyParameter publicKey)
        Convenience factory for the single-cosigner case taking a lightweight public key; the draft algorithm identifier is detected from the key type.
        Throws:
        java.lang.IllegalArgumentException - if the public key type is unsupported
      • get

        public MTCCosignerVerifier get​(byte[] cosignerId)
        Specified by:
        get in interface MTCCosignerVerifierProvider
        Parameters:
        cosignerId - the binary trust anchor ID of the cosigner
        Returns:
        a verifier for the cosigner, or null if the cosigner is unknown