Sahana | Posts: 6

How to implement signing method as 'Personal Certificate' with java sdk?

0 votes

A 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.


Duo_Liang | Posts: 3776

Reply to: How to implement signing method as 'Personal Certificate' with java sdk?

0 votes

JHi 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


Sahana | Posts: 6

Reply to: How to implement signing method as 'Personal Certificate' with java sdk?

0 votes

Thanks, Duo. I shall check and let you know in case of any queries.


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off