@Test public void testAlteredSignature() throws Exception { boolean valid = true; InputStream pesFile = new ClassPathResource("data/test-alteree.xml").getInputStream(); try { signatureService.validatePes(pesFile); } catch (SignatureException e) { valid = false; } Assert.assertFalse(valid); }
public void validatePes(byte[] pesFile) throws SignatureException { validatePes(new ByteArrayInputStream(pesFile)); }
SignatureService { public void validatePes(byte[] pesFile) throws SignatureException { validatePes(new ByteArrayInputStream(pesFile)); } }
SignatureService { public void validatePes(byte[] pesFile) throws SignatureException { validatePes(new ByteArrayInputStream(pesFile)); }  }
SignatureService { public void validatePes(byte[] pesFile) throws SignatureException { validatePes(new ByteArrayInputStream(pesFile)); }  void validatePes(byte[] pesFile); void validatePes(InputStream pesStream); }
SignatureService { public void validatePes(byte[] pesFile) throws SignatureException { validatePes(new ByteArrayInputStream(pesFile)); }  void validatePes(byte[] pesFile); void validatePes(InputStream pesStream);  }