2 Replies Latest reply: Dec 11, 2007 6:38 PM by (Delvin_Khong) RSS

    Exception while trying to sign a document

    Community Member
      hi,

      i am trying to sing a document but i got following exception:

      [ Creation of this signature could not be completed. ] -> [ You have not selected a valid Digital ID. Please try again. ]

      why do this happens?
      what is the "digital id"?

      here is my sourcecode:

      SignatureField certSigField = pdfDoc.addInvisibleSignatureField();
      String certSigFieldName = certSigField.getFieldName();
      Credential cred = new Credential("InvoiceAdmin",
                                               PWD.getBytes("UTF-8"));
      pdfDoc.certify (cred, certSigFieldName, "test Reason",
                              "test Location", "test contactinfo",
                              SignaturePermissions.NO_CHANGES, true,
                              "test legal attest");

      my Trust XML looks as follow:


       
       
       
         
       



      what do i do wrong?

      thanks