public class DeltaCertAttributeUtils
extends java.lang.Object
| Constructor and Description |
|---|
DeltaCertAttributeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isDeltaRequestSignatureValid(PKCS10CertificationRequest baseRequest,
ContentVerifierProvider contentVerifierProvider)
Verify the delta signature attached to a base PKCS#10 request.
|
static DeltaCertificateRequestAttributeValue |
trimDeltaCertificateRequest(DeltaCertificateRequestAttributeValue delta,
PKCS10CertificationRequest baseRequest)
Return a copy of
delta with subject, signatureAlgorithm and extensions
fields stripped when they match the corresponding fields of baseRequest. |
public static boolean isDeltaRequestSignatureValid(PKCS10CertificationRequest baseRequest, ContentVerifierProvider contentVerifierProvider) throws PKCSException
baseRequest - the base PKCS#10 request carrying the delta attributes.contentVerifierProvider - provider able to verify the delta signature algorithm.true if the delta signature is valid, false otherwise.PKCSException - if the signature cannot be processed.public static DeltaCertificateRequestAttributeValue trimDeltaCertificateRequest(DeltaCertificateRequestAttributeValue delta, PKCS10CertificationRequest baseRequest)
delta with subject, signatureAlgorithm and extensions
fields stripped when they match the corresponding fields of baseRequest.
Mirrors the cert-side rule in
DeltaCertificateTool.trimDeltaCertificateDescriptor(org.bouncycastle.asn1.x509.DeltaCertificateDescriptor, org.bouncycastle.asn1.x509.TBSCertificate, org.bouncycastle.asn1.x509.Extensions):
draft-bonnell-lamps-chameleon-certs ยง4.1 says the extensions field MUST NOT contain
any extension which has the same criticality and DER-encoded value as the base,
whose type does not appear in the base, or which is the DCD extension type itself.