Examples of signDocument()


Examples of org.commonlib.crypto.PadesSignatureEngine.signDocument()

    // Usa Digistamp per ottenere un account di test per il rilascio di timestamp
    TSAClient tsa = new TSAClientBouncyCastle("http://tsatest1.digistamp.com/tsa", "12345678", "12345678");
    engine.setTsaClient(tsa);

    engine.setUseInternetCrl(true);
    engine.signDocument(input, output);
  }

  public static void testFirmaMultipla(String[] args)
     throws Exception
  {
View Full Code Here

Examples of org.commonlib.crypto.PadesSignatureEngine.signDocument()

//    info1.location = "Luogo della prima firma.";
//    info1.reason = "Motivo della prima firma.";
//    info1.position = new Rectangle(300, 750, 400, 780);
//    info1.page = 1;
//    engine.setAppearanceInfo(info1);
    engine.signDocument(input, output1);

    // applica la seconda firma
    PadesSignatureEngine.PdfSignatureAppearanceInfo info2 = new PadesSignatureEngine.PdfSignatureAppearanceInfo();
//    info2.infoName = "Firma 2";
//    info2.location = "Luogo della seconda firma.";
View Full Code Here

Examples of org.commonlib.crypto.PadesSignatureEngine.signDocument()

//    info2.location = "Luogo della seconda firma.";
//    info2.reason = "Motivo della seconda firma.";
//    info2.position = new Rectangle(400, 750, 500, 780);
//    info2.page = 1;
//    engine.setAppearanceInfo(info2);
    engine.signDocument(output1, output2);
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.