private ChainItem<XmlSubXCV> aiaPresent(CertificateWrapper certificate, SubContext subContext) { LevelConstraint constraint = validationPolicy.getCertificateAuthorityInfoAccessPresentConstraint(context, subContext); return new AuthorityInfoAccessPresentCheck(result, certificate, constraint); }
private ChainItem<XmlSubXCV> commonName(CertificateWrapper certificate, SubContext subContext) { MultiValuesConstraint constraint = validationPolicy.getCertificateCommonNameConstraint(context, subContext); return new CommonNameCheck(result, certificate, constraint); }
private ChainItem<XmlSubXCV> country(CertificateWrapper certificate, SubContext subContext) { MultiValuesConstraint constraint = validationPolicy.getCertificateCountryConstraint(context, subContext); return new CountryCheck(result, certificate, constraint); }
private ChainItem<XmlSubXCV> certificateCryptographic(CertificateWrapper certificate, Context context, SubContext subcontext) { CryptographicConstraint cryptographicConstraint = validationPolicy.getCertificateCryptographicConstraint(context, subcontext); return new CertificateCryptographicCheck(result, certificate, currentTime, cryptographicConstraint); }
private ChainItem<XmlSubXCV> givenName(CertificateWrapper certificate, SubContext subContext) { MultiValuesConstraint constraint = validationPolicy.getCertificateGivenNameConstraint(context, subContext); return new GivenNameCheck(result, certificate, constraint); }
private ChainItem<XmlFC> mimetypeFileContentCheck() { MultiValuesConstraint constraint = policy.getAcceptedMimeTypeContentsConstraint(); return new AcceptableMimetypeFileContentCheck(result, diagnosticData.getMimetypeFileContent(), constraint); }
private ChainItem<XmlCV> allFilesSignedCheck() { LevelConstraint constraint = validationPolicy.getAllFilesSignedConstraint(); return new AllFilesSignedCheck(result, (SignatureWrapper) token, diagnosticData.getContainerInfo(), constraint); }
private ChainItem<XmlFC> containerTypeCheck() { MultiValuesConstraint constraint = policy.getAcceptedContainerTypesConstraint(); return new ContainerTypeCheck(result, diagnosticData.getContainerType(), constraint); }
private ChainItem<XmlFC> acceptableZipCommentCheck() { MultiValuesConstraint constraint = policy.getAcceptedZipCommentsConstraint(); return new AcceptableZipCommentCheck(result, diagnosticData.getZipComment(), constraint); }
private ChainItem<XmlValidationProcessLongTermData> bestSignatureTimeNotBeforeCertificateIssuance(Date bestSignatureTime) { CertificateWrapper signingCertificate = diagnosticData.getUsedCertificateById(currentSignature.getSigningCertificateId()); return new BestSignatureTimeNotBeforeCertificateIssuanceCheck(result, bestSignatureTime, signingCertificate, policy.getBestSignatureTimeBeforeIssuanceDateOfSigningCertificateConstraint()); }
private ChainItem<XmlVTS> cryptographicCheck(TokenProxy token, Date validationTime) { CryptographicConstraint constraint = policy.getCertificateCryptographicConstraint(context, SubContext.SIGNING_CERT); return new CryptographicCheck<XmlVTS>(result, token, validationTime, constraint); }
private ChainItem<XmlPCV> cryptographicCheck(XmlPCV result, CertificateWrapper certificate, Date validationTime, SubContext subContext) { CryptographicConstraint constraint = policy.getCertificateCryptographicConstraint(context, subContext); return new CryptographicCheck<XmlPCV>(result, certificate, validationTime, constraint); }
private ChainItem<XmlRFC> revocationCryptographic(RevocationWrapper revocationData) { CryptographicConstraint cryptographicConstraint = policy.getCertificateCryptographicConstraint(context, subContext); return new CryptographicCheck<XmlRFC>(result, revocationData, validationDate, cryptographicConstraint); }