How to implement signing method as 'Personal Certificate' with java sdk?
Monday, December 14, 2020 at 10:19amA client (Progeny Systems) wants to use PCC (Personal Certificate Client) with iFrame, and can't seem to find how to define the signing method.
From the UI, under recipient settings -> Advanced tab, the signing method can be set to PCC.
Can you please confirm the usage of the same using java SDK?
P.S: They use the signing URL to initiate the signing ceremony.
Let me know if you need more details.
Reply to: How to implement signing method as 'Personal Certificate' with java sdk?
Monday, December 14, 2020 at 12:14pmJHi Sahana,
Try with this Java code:
EslClient eslClient = new EslClient(API_KEY, API_URL);
DocumentPackage pkg = PackageBuilder
.newPackageNamed("Sample Package")
.withSigner(SignerBuilder.newSignerWithEmail("[email protected]").withCustomId("Signer1").withFirstName("John").withLastName("Smith"))
.withDocument(DocumentBuilder.newDocumentWithName("Document1").fromFile(FILE_PATH).withId("DOCUMENT1")
.withSignature(SignatureBuilder.signatureFor("[email protected]")
.onPage(0)
.atPosition(100, 100)
.withSize(200, 55)
))
.withStatus(PackageStatus.DRAFT).build();
PackageId packageId = eslClient.createPackageOneStep(pkg);
System.out.println(packageId);
SignerVerification personalCertificateSigning = new SignerVerification();
personalCertificateSigning.setTypeId("personalCertificateSigning");
personalCertificateSigning.setPayload("");
eslClient.createSignerVerification(packageId, "Signer1", personalCertificateSigning);
eslClient.sendPackage(packageId);
Duo
Reply to: How to implement signing method as 'Personal Certificate' with java sdk?
Monday, December 21, 2020 at 02:06pmThanks, Duo. I shall check and let you know in case of any queries.