Class MerkleTreeCertificateValidator.ValidationParams

java.lang.Object
org.bouncycastle.cert.plants.MerkleTreeCertificateValidator.ValidationParams
Enclosing class:
MerkleTreeCertificateValidator

public static class MerkleTreeCertificateValidator.ValidationParams extends Object
Parameters supplied by the relying party for certificate validation.

authorityInfo is optional. When non-null it pins the validator to the CA's published MTCCertificationAuthority extension and enforces:

  • The cert's serial number lies within the CA's authorized range [authorityInfo.getMinSerial(), authorityInfo.getMaxSerial()] (Section 5.5 / 7.2).
  • The hashFunction OID matches authorityInfo.getLogHash() (Section 7.1).

authorityInfo.getSigAlg() is the CA cosigner's published signature algorithm. MTCSignatureVerifier.getAlgorithm() surfaces the MTC algorithm string a registered verifier is bound to, but the draft does not pin OID identifiers for the plain (r||s) ECDSA forms, so the validator does not map sigAlg to that string itself. Callers building the provider for the CA cosigner remain responsible for checking the verifier they register against authorityInfo.getSigAlg().