Docs
Java

Java

Learn how to create your first sigature request using the DigiSign Java SDK.

Prerequisites

To get the most out of this guide, you’ll need to:

Install

Get the DigiSign Java SDK.

implementation 'com.digisign:digisign-java-sdk:1.0.0'

Authenticate

The DigiSign API requires authentication via an API Key. Learn More.

Call createSession to authenticate. Each session expires every 6 minutes.

import com.digisign.java.sdk.Digisign;
 
public class Main {
 
    public static void main(String[] args) {
        try {
            Digisign.Session session = Digisign.createSession("ds_123456789");
        } catch (Exception e) {
            System.err.println(e.getMessage());
        }
    }
}

Transform a template to a Request

The easiest way to create a request is by using the transform method.

import com.digisign.java.sdk.Digisign;
 
public class Main {
 
    public static void main(String[] args) {
        try {
            Digisign.Session session = Digisign.createSession("ds_123456789");
            String workspaceId = "ws_1234567890";
 
            // Assuming you have a Map for data
            session.Requests.Workspace(workspaceId).transform(data);
        } catch (Exception e) {
            System.err.println(e.getMessage());
        }
    }
}

Recipients ID must match a corresponding alias ID from the selected template.

Try it yourself

Was this page helpful?