@Test public void attachmentsCannotResolve() throws Exception { LOG.info("attachments()"); Resolver resolver = new Resolver( HASH_CHAIN, "hc-verifier2-hashchain.xml") { @Override public boolean shouldResolve(String uri, byte[] digestValue) { switch (uri) { case "/attachment1": case "/attachment2": case "/attachment3": return false; default: return true; } } }; Map<String, DigestValue> inputs = makeInputs( MESSAGE, new DigestValue( DigestMethod.SHA256, new byte[] {(byte) 11 })); HashChainVerifier.verify( load("hc-verifier2-hashchainresult.xml"), resolver, inputs); }
public static void verify(InputStream hashChainResultXml, HashChainReferenceResolver referenceResolver, Map<String, DigestValue> inputs) throws Exception { new HashChainVerifier(hashChainResultXml, referenceResolver, inputs).verify(); }
HashChainVerifier { public static void verify(InputStream hashChainResultXml, HashChainReferenceResolver referenceResolver, Map<String, DigestValue> inputs) throws Exception { new HashChainVerifier(hashChainResultXml, referenceResolver, inputs).verify(); } }
HashChainVerifier { public static void verify(InputStream hashChainResultXml, HashChainReferenceResolver referenceResolver, Map<String, DigestValue> inputs) throws Exception { new HashChainVerifier(hashChainResultXml, referenceResolver, inputs).verify(); } private  HashChainVerifier(InputStream hashChainResultXml, HashChainReferenceResolver referenceResolver,
            Map<String, DigestValue> inputs); }
HashChainVerifier { public static void verify(InputStream hashChainResultXml, HashChainReferenceResolver referenceResolver, Map<String, DigestValue> inputs) throws Exception { new HashChainVerifier(hashChainResultXml, referenceResolver, inputs).verify(); } private  HashChainVerifier(InputStream hashChainResultXml, HashChainReferenceResolver referenceResolver,
            Map<String, DigestValue> inputs); static void verify(InputStream hashChainResultXml, HashChainReferenceResolver referenceResolver,
            Map<String, DigestValue> inputs); }
HashChainVerifier { public static void verify(InputStream hashChainResultXml, HashChainReferenceResolver referenceResolver, Map<String, DigestValue> inputs) throws Exception { new HashChainVerifier(hashChainResultXml, referenceResolver, inputs).verify(); } private  HashChainVerifier(InputStream hashChainResultXml, HashChainReferenceResolver referenceResolver,
            Map<String, DigestValue> inputs); static void verify(InputStream hashChainResultXml, HashChainReferenceResolver referenceResolver,
            Map<String, DigestValue> inputs);  }