test_class.declarator: signatureService
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private SignatureService signatureService;
test_class.type: SignatureService
test_class.var_name: signatureService
test_class.file: pes-service/src/test/java/fr/sictiam/stela/pesservice/service/SignatureServiceTest.java
test_class.identifier: SignatureServiceTest
test_case.body: @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);
      }
test_case.class_method_signature: SignatureServiceTest.testAlteredSignature()
test_case.full_signature: @Test public void testAlteredSignature()
test_case.identifier: testAlteredSignature
test_case.invocations: getInputStream validatePes assertFalse
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAlteredSignature()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(SignatureService.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(SignatureService.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: NAMESPACE_SPEC_NS = "http://www.w3.org/2000/xmlns/"
focal_class.modifier: private static final
focal_class.original_string: private static final String NAMESPACE_SPEC_NS = "http://www.w3.org/2000/xmlns/";
focal_class.type: String
focal_class.var_name: NAMESPACE_SPEC_NS
focal_class.declarator: SIGNATURE_SPEC_NS = "http://www.w3.org/2000/09/xmldsig#"
focal_class.modifier: private static final
focal_class.original_string: private static final String SIGNATURE_SPEC_NS = "http://www.w3.org/2000/09/xmldsig#";
focal_class.type: String
focal_class.var_name: SIGNATURE_SPEC_NS
focal_class.declarator: QUALIFIED_NAME = "xmlns:ds"
focal_class.modifier: private static final
focal_class.original_string: private static final String QUALIFIED_NAME = "xmlns:ds";
focal_class.type: String
focal_class.var_name: QUALIFIED_NAME
focal_class.declarator: validatePdfSignature
focal_class.modifier: @Value("${application.pdfValidation}")
      private
focal_class.original_string: @Value("${application.pdfValidation}")
      private boolean validatePdfSignature;
focal_class.type: boolean
focal_class.var_name: validatePdfSignature
focal_class.file: pes-service/src/main/java/fr/sictiam/stela/pesservice/service/SignatureService.java
focal_class.identifier: SignatureService
focal_class.class_method_signature: SignatureService.loadXml(InputStream pesStream)
focal_class.full_signature: private Document loadXml(InputStream pesStream)
focal_class.identifier: loadXml
focal_class.modifiers: private
focal_class.parameters: (InputStream pesStream)
focal_class.return: Document
focal_class.signature: Document loadXml(InputStream pesStream)
focal_class.class_method_signature: SignatureService.processPesVerification(Document document)
focal_class.full_signature: private List<SignatureVerifierResult> processPesVerification(Document document)
focal_class.identifier: processPesVerification
focal_class.modifiers: private
focal_class.parameters: (Document document)
focal_class.return: List<SignatureVerifierResult>
focal_class.signature: List<SignatureVerifierResult> processPesVerification(Document document)
focal_class.class_method_signature: SignatureService.createNamespaceNode(Document document)
focal_class.full_signature: private static Element createNamespaceNode(Document document)
focal_class.identifier: createNamespaceNode
focal_class.modifiers: private static
focal_class.parameters: (Document document)
focal_class.return: Element
focal_class.signature: Element createNamespaceNode(Document document)
focal_class.class_method_signature: SignatureService.validatePdfAttachment(byte[] pdf)
focal_class.full_signature: private List<String> validatePdfAttachment(byte[] pdf)
focal_class.identifier: validatePdfAttachment
focal_class.modifiers: private
focal_class.parameters: (byte[] pdf)
focal_class.return: List<String>
focal_class.signature: List<String> validatePdfAttachment(byte[] pdf)
focal_class.class_method_signature: SignatureService.validatePes(byte[] pesFile)
focal_class.full_signature: public void validatePes(byte[] pesFile)
focal_class.identifier: validatePes
focal_class.modifiers: public
focal_class.parameters: (byte[] pesFile)
focal_class.return: void
focal_class.signature: void validatePes(byte[] pesFile)
focal_class.class_method_signature: SignatureService.validatePes(InputStream pesStream)
focal_class.full_signature: public void validatePes(InputStream pesStream)
focal_class.identifier: validatePes
focal_class.modifiers: public
focal_class.parameters: (InputStream pesStream)
focal_class.return: void
focal_class.signature: void validatePes(InputStream pesStream)
focal_method.body: public void validatePes(byte[] pesFile) throws SignatureException {
          validatePes(new ByteArrayInputStream(pesFile));
      }
focal_method.class_method_signature: SignatureService.validatePes(byte[] pesFile)
focal_method.full_signature: public void validatePes(byte[] pesFile)
focal_method.identifier: validatePes
focal_method.invocations: validatePes
focal_method.modifiers: public
focal_method.parameters: (byte[] pesFile)
focal_method.return: void
focal_method.signature: void validatePes(byte[] pesFile)