BioSigner { public void sign(final Object parent, final String signatureId, final SignaturePadListener spl, final String template, final Rectangle signatureArea, final boolean paintTabletBtns) throws IOException, SignaturePadException { this.signatureAreaOnPad = signatureArea; this.signatureWindow = new WacomSignatureWindow( parent, signatureId, template, this.signatureAreaOnPad, paintTabletBtns ); this.signatureWindow.addSignatureListener(spl); this.signatureWindow.captureSign(); }  void sign(final Object parent,
			         final String signatureId,
					 final SignaturePadListener spl,
					 final String template,
					 final Rectangle signatureArea,
					 final boolean paintTabletBtns); void sign(final Object parent,
					 final String signatureId,
					 final SignaturePadListener spl,
					 final byte[] jpegImage,
					 final Rectangle signatureArea,
					 final boolean paintTabletBtns);  }
@Test public void testBioSigner() throws Exception { final Properties p = new Properties(); p.put("tsaURL", "http: p.put("tsaPolicy", "0.4.0.2023.1.1"); p.put("tsaRequireCert", "true"); p.put("tsaHashAlgorithm", "SHA-512"); p.put("imagePage", "1"); p.put("PositionOnPageLowerLeftX", "70"); p.put("PositionOnPageLowerLeftY", "120"); p.put("PositionOnPageUpperRightX", "160"); p.put("PositionOnPageUpperRightY", "90"); new BioSigner().sign( null, "ID001", this, "CABECERA DE FIRMA", new Rectangle(30, 50, 400, 200), true ); }