@Test public void schemaValidationFail() throws Exception { thrown.expectError(X_MALFORMED_SIGNATURE); SignatureVerifier verifier = createSignatureVerifier("src/test/signatures/sign-0-schema-fail.xml"); verifier.verify(null, null); }
public void verify(ClientId signer, Date atDate) throws Exception { if (verifySchema) { verifySchema(); } if (hashChainResult != null && signature.references(SIG_HASH_CHAIN_RESULT)) { verifyHashChain(); } X509Certificate signingCert = getSigningCertificate(); verifySignerName(signer, signingCert); verifySignatureValue(signingCert); verifyTimestampManifests(); verifyCertificateChain(atDate, signer, signingCert); }
SignatureVerifier { public void verify(ClientId signer, Date atDate) throws Exception { if (verifySchema) { verifySchema(); } if (hashChainResult != null && signature.references(SIG_HASH_CHAIN_RESULT)) { verifyHashChain(); } X509Certificate signingCert = getSigningCertificate(); verifySignerName(signer, signingCert); verifySignatureValue(signingCert); verifyTimestampManifests(); verifyCertificateChain(atDate, signer, signingCert); } }
SignatureVerifier { public void verify(ClientId signer, Date atDate) throws Exception { if (verifySchema) { verifySchema(); } if (hashChainResult != null && signature.references(SIG_HASH_CHAIN_RESULT)) { verifyHashChain(); } X509Certificate signingCert = getSigningCertificate(); verifySignerName(signer, signingCert); verifySignatureValue(signingCert); verifyTimestampManifests(); verifyCertificateChain(atDate, signer, signingCert); } SignatureVerifier(SignatureData signatureData);  SignatureVerifier(Signature signature);  SignatureVerifier(Signature signature, String hashChainResult,
            String hashChain); }
SignatureVerifier { public void verify(ClientId signer, Date atDate) throws Exception { if (verifySchema) { verifySchema(); } if (hashChainResult != null && signature.references(SIG_HASH_CHAIN_RESULT)) { verifyHashChain(); } X509Certificate signingCert = getSigningCertificate(); verifySignerName(signer, signingCert); verifySignatureValue(signingCert); verifyTimestampManifests(); verifyCertificateChain(atDate, signer, signingCert); } SignatureVerifier(SignatureData signatureData);  SignatureVerifier(Signature signature);  SignatureVerifier(Signature signature, String hashChainResult,
            String hashChain); Signature getSignature(); void addParts(List<MessagePart> messageParts); void addPart(MessagePart part); void setSignatureResourceResolver(ResourceResolverSpi resolver); void setHashChainResourceResolver(
            HashChainReferenceResolver resolver); void setVerifySchema(boolean shouldVerifySchema); X509Certificate getSigningCertificate(); OCSPResp getSigningOcspResponse(String instanceIdentifier); void verify(ClientId signer, Date atDate); }
SignatureVerifier { public void verify(ClientId signer, Date atDate) throws Exception { if (verifySchema) { verifySchema(); } if (hashChainResult != null && signature.references(SIG_HASH_CHAIN_RESULT)) { verifyHashChain(); } X509Certificate signingCert = getSigningCertificate(); verifySignerName(signer, signingCert); verifySignatureValue(signingCert); verifyTimestampManifests(); verifyCertificateChain(atDate, signer, signingCert); } SignatureVerifier(SignatureData signatureData);  SignatureVerifier(Signature signature);  SignatureVerifier(Signature signature, String hashChainResult,
            String hashChain); Signature getSignature(); void addParts(List<MessagePart> messageParts); void addPart(MessagePart part); void setSignatureResourceResolver(ResourceResolverSpi resolver); void setHashChainResourceResolver(
            HashChainReferenceResolver resolver); void setVerifySchema(boolean shouldVerifySchema); X509Certificate getSigningCertificate(); OCSPResp getSigningOcspResponse(String instanceIdentifier); void verify(ClientId signer, Date atDate);  }