private XmlSAV executeSignatureAcceptanceValidation() { AbstractAcceptanceValidation<?> aav = null; if (Context.SIGNATURE.equals(context) || Context.COUNTER_SIGNATURE.equals(context)) { aav = new SignatureAcceptanceValidation(diagnosticData, currentTime, (SignatureWrapper) token, context, policy); } else if (Context.TIMESTAMP.equals(context)) { aav = new TimestampAcceptanceValidation(diagnosticData, currentTime, (TimestampWrapper) token, policy); } else if (Context.REVOCATION.equals(context)) { aav = new RevocationAcceptanceValidation(diagnosticData, currentTime, (RevocationWrapper) token, policy); } return aav != null ? aav.execute() : null; }
private XmlCV executeCryptographicVerification() { if (!Context.CERTIFICATE.equals(context)) { CryptographicVerification cv = new CryptographicVerification(diagnosticData, token, context, policy); return cv.execute(); } else { return null; } }
private XmlISC executeIdentificationOfTheSigningCertificate() { if (!Context.CERTIFICATE.equals(context)) { IdentificationOfTheSigningCertificate isc = new IdentificationOfTheSigningCertificate(diagnosticData, token, context, policy); return isc.execute(); } else { return null; } }
private XmlFC executeFormatChecking() { if (Context.SIGNATURE.equals(context)) { FormatChecking fc = new FormatChecking(diagnosticData, (SignatureWrapper) token, context, policy); return fc.execute(); } else { return null; } }
private XmlVCI executeValidationContextInitialization() { if (Context.SIGNATURE.equals(context)) { ValidationContextInitialization vci = new ValidationContextInitialization((SignatureWrapper) token, context, policy); return vci.execute(); } return null; }
private XmlXCV executeX509CertificateValidation() { if (Context.CERTIFICATE.equals(context)) { CertificateWrapper certificate = (CertificateWrapper) token; X509CertificateValidation xcv = new X509CertificateValidation(diagnosticData, certificate, currentTime, certificate.getNotBefore(), context, policy); return xcv.execute(); } else { CertificateWrapper certificate = diagnosticData.getUsedCertificateById(token.getSigningCertificateId()); if (certificate != null) { if (Context.SIGNATURE.equals(context) || Context.COUNTER_SIGNATURE.equals(context)) { X509CertificateValidation xcv = new X509CertificateValidation(diagnosticData, certificate, currentTime, certificate.getNotBefore(), context, policy); return xcv.execute(); } else if (Context.TIMESTAMP.equals(context)) { X509CertificateValidation xcv = new X509CertificateValidation(diagnosticData, certificate, currentTime, ((TimestampWrapper) token).getProductionTime(), context, policy); return xcv.execute(); } else if (Context.REVOCATION.equals(context)) { X509CertificateValidation xcv = new X509CertificateValidation(diagnosticData, certificate, currentTime, ((RevocationWrapper) token).getProductionDate(), context, policy); return xcv.execute(); } } } return null; }