public static class MerkleTreeCertificateValidator.ValidationParams
extends java.lang.Object
authorityInfo is optional. When non-null it pins the validator
to the CA's published MTCCertificationAuthority extension and
enforces:
[authorityInfo.getMinSerial(), authorityInfo.getMaxSerial()]
(Section 5.5 / 7.2).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().
| Constructor and Description |
|---|
ValidationParams(MTCCosignerVerifierProvider cosignerVerifierProvider,
java.util.List<MerkleTreeCertificateValidator.TrustedSubtree> trustedSubtrees,
java.util.List<MerkleTreeCertificateValidator.RevokedRange> revokedRanges,
int minCosignatures,
MerkleTreeHash hashFunction,
org.bouncycastle.asn1.x509.MTCCertificationAuthority authorityInfo) |
ValidationParams(MTCCosignerVerifierProvider cosignerVerifierProvider,
MerkleTreeHash hashFunction,
int minCosignatures,
org.bouncycastle.asn1.x509.MTCCertificationAuthority authorityInfo)
Convenience constructor for the common case where the relying party
has no pre-distributed trusted subtrees and no revocations to apply.
|
ValidationParams(MTCCosignerVerifierProvider cosignerVerifierProvider,
MerkleTreeHash hashFunction,
java.util.List<MerkleTreeCertificateValidator.TrustedSubtree> trustedSubtrees,
java.util.List<MerkleTreeCertificateValidator.RevokedRange> revokedRanges,
int minCosignatures) |
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.asn1.x509.MTCCertificationAuthority |
getAuthorityInfo() |
MTCCosignerVerifierProvider |
getCosignerVerifierProvider() |
MerkleTreeHash |
getHashFunction() |
int |
getMinCosignatures() |
java.util.List<MerkleTreeCertificateValidator.RevokedRange> |
getRevokedRanges() |
java.util.List<MerkleTreeCertificateValidator.TrustedSubtree> |
getTrustedSubtrees() |
public ValidationParams(MTCCosignerVerifierProvider cosignerVerifierProvider, MerkleTreeHash hashFunction, java.util.List<MerkleTreeCertificateValidator.TrustedSubtree> trustedSubtrees, java.util.List<MerkleTreeCertificateValidator.RevokedRange> revokedRanges, int minCosignatures)
public ValidationParams(MTCCosignerVerifierProvider cosignerVerifierProvider, MerkleTreeHash hashFunction, int minCosignatures, org.bouncycastle.asn1.x509.MTCCertificationAuthority authorityInfo)
trustedSubtrees and revokedRanges to empty
lists.public ValidationParams(MTCCosignerVerifierProvider cosignerVerifierProvider, java.util.List<MerkleTreeCertificateValidator.TrustedSubtree> trustedSubtrees, java.util.List<MerkleTreeCertificateValidator.RevokedRange> revokedRanges, int minCosignatures, MerkleTreeHash hashFunction, org.bouncycastle.asn1.x509.MTCCertificationAuthority authorityInfo)
public MTCCosignerVerifierProvider getCosignerVerifierProvider()
public java.util.List<MerkleTreeCertificateValidator.TrustedSubtree> getTrustedSubtrees()
public java.util.List<MerkleTreeCertificateValidator.RevokedRange> getRevokedRanges()
public int getMinCosignatures()
public MerkleTreeHash getHashFunction()
public org.bouncycastle.asn1.x509.MTCCertificationAuthority getAuthorityInfo()