public class EslClient extends Object
The EslClient class creates a eSignLive client with the given api token and base url.
The base url can be the staging or production url.
For example: http://sandbox.esignlive.com/api
Provides access to service classes such as PackageService to help create packages.
| Modifier and Type | Field and Description |
|---|---|
static String |
API_KEY |
static String |
API_TOKEN_CONFIG |
static String |
BASE_URL |
| Constructor and Description |
|---|
EslClient(ApiTokenConfig apiTokenConfig,
String baseURL,
boolean allowAllSSLCertificates,
ProxyConfiguration proxyConfiguration,
boolean useSystemProperties,
Map<String,String> headers) |
EslClient(String apiKey,
String baseURL)
The constructor of the EslClient class
|
EslClient(String apiKey,
String baseURL,
boolean allowAllSSLCertificates) |
EslClient(String apiKey,
String baseURL,
boolean allowAllSSLCertificates,
ProxyConfiguration proxyConfiguration) |
EslClient(String apiKey,
String baseURL,
boolean allowAllSSLCertificates,
ProxyConfiguration proxyConfiguration,
boolean useSystemProperties,
Map<String,String> headers) |
EslClient(String apiKey,
String baseURL,
ProxyConfiguration proxyConfiguration) |
EslClient(String apiKey,
String baseURL,
String webpageURL)
The constructor of the EslClient class
|
EslClient(String apiKey,
String baseURL,
String webpageURL,
boolean allowAllSSLCertificates) |
| Modifier and Type | Method and Description |
|---|---|
void |
changePackageStatusToDraft(PackageId packageId)
Change the package's status from SENT to DRAFT.
|
void |
configureDocumentVisibility(PackageId packageId,
DocumentVisibility visibility)
Configure the document visibility.
|
PackageId |
createAndSendPackage(DocumentPackage documentPackage)
Creates a new packages, and immediately sends it to be signed.
|
PackageId |
createPackage(DocumentPackage documentPackage)
Creates the package.
|
PackageId |
createPackageFromTemplate(DocumentPackage documentPackage,
PackageId packageId)
Deprecated.
Please use createPackageFromTemplate( PackageId packageId, DocumentPackage documentPackage ) instead of this method.
|
PackageId |
createPackageFromTemplate(PackageId packageId,
DocumentPackage documentPackage)
Creates a package based on an existent template
|
PackageId |
createPackageOneStep(DocumentPackage documentPackage)
Creates the package in one step
WARNING: DOES NOT WORK WHEN SENDER HAS A SIGNATURE
|
SessionToken |
createSenderSessionToken()
Deprecated.
Use the
AuthenticationTokensService.createSenderAuthenticationToken(java.lang.String)
or AuthenticationTokensService.createUserAuthenticationToken() depending if you want to
create a token to authenticate as the package sender or the api key user. |
SessionToken |
createSessionToken(PackageId packageId,
String signerId)
|
SessionToken |
createSignerSessionToken(PackageId packageId,
String signerId)
|
void |
createSignerVerification(PackageId packageId,
String roleId,
SignerVerification signerVerification) |
void |
deleteAttachmentFile(PackageId packageId,
String attachmentId,
Integer fileId,
String signerId) |
void |
deleteSignerVerification(PackageId packageId,
String roleId) |
byte[] |
downloadDocument(PackageId packageId,
String documentId)
Downloads a document that belongs to a package
|
byte[] |
downloadEvidenceSummary(PackageId packageId)
Downloads the evidence summary for a package
|
byte[] |
downloadOriginalDocument(PackageId packageId,
String documentId)
Downloads an original document that belongs to a package.
|
byte[] |
downloadZippedDocuments(PackageId packageId)
Downloads the zipped documents of a package
|
AccountConfigService |
getAccountConfigService() |
AccountService |
getAccountService() |
ApprovalService |
getApprovalService() |
AttachmentRequirementService |
getAttachmentRequirementService() |
AuditService |
getAuditService() |
AuthenticationTokensService |
getAuthenticationTokensService()
Facilitates access to the service that creates authentication tokens
|
CustomFieldService |
getCustomFieldService()
Facilitates access to the service that could be used to add custom field
|
DataRetentionSettingsService |
getDataRetentionSettingsService()
Gets the data retention settings service
|
List<Document> |
getDocuments(PackageId packageId,
String signerId) |
DocumentVisibility |
getDocumentVisibility(PackageId packageId)
Get document visibility.
|
EventNotificationService |
getEventNotificationService()
Facilitates access to the service that could be used to register for event notifications
|
FieldSummaryService |
getFieldSummaryService()
Facilitates access to the service that provides a summary of all the document fields and their values
|
List<FieldSummary> |
getFieldValues(PackageId packageId)
Retrieves a summary for all the document fields of the package identified by its packageId
|
GroupService |
getGroupService() |
LayoutService |
getLayoutService() |
DocumentPackage |
getPackage(PackageId packageId) |
PackageService |
getPackageService()
Gets the package service
|
QRCodeService |
getQrCodeService() |
ReminderService |
getReminderService() |
ReportService |
getReportService()
Gets the report service
|
SessionService |
getSessionService() |
SignatureImageService |
getSignatureImageService()
Facilitates access to the service that get signature image
|
List<Signer> |
getSigners(PackageId packageId,
String documentId) |
SignerVerification |
getSignerVerification(PackageId packageId,
String roleId) |
SigningService |
getSigningService() |
SigningStatus |
getSigningStatus(PackageId packageId,
SignerId signerId,
DocumentId documentId) |
SigningStyleService |
getSigningStyleService()
Facilitates access to the service that could be used to add signing style
|
SystemService |
getSystemService() |
TemplateService |
getTemplateService() |
VirtualRoomService |
getVirtualRoomService()
Gets the virtual room config service
|
void |
sendPackage(PackageId id)
It does the followings for the package ID specified as argument:
|
EslClient |
setWebpageURL(String baseURL) |
void |
signDocument(PackageId packageId,
String documentName)
Sign a document using current api key
|
void |
signDocument(PackageId packageId,
String documentName,
CapturedSignature capturedSignature)
Sign a document using current api key
|
void |
signDocuments(PackageId packageId)
Sign documents using current api key
|
void |
signDocuments(PackageId packageId,
CapturedSignature capturedSignature)
Sign documents using current api key
|
void |
signDocuments(PackageId packageId,
String signerId)
Sign documents using signer id
|
void |
signDocuments(PackageId packageId,
String signerId,
CapturedSignature capturedSignature)
Sign documents using signer id
|
void |
updatePackage(PackageId packageId,
DocumentPackage documentPackage)
Update the package, when the package status is only Draft
|
void |
updateSignerVerification(PackageId packageId,
String roleId,
SignerVerification signerVerification) |
void |
uploadAttachment(PackageId packageId,
String attachmentId,
Map<String,byte[]> files,
String signerId) |
void |
uploadAttachment(PackageId packageId,
String attachmentId,
String filename,
byte[] fileContent,
String signerId) |
Document |
uploadDocument(Document document,
DocumentPackage documentPackage)
Deprecated.
Please use uploadDocument(Document document, PackageId packageId) instead of this method.
|
Document |
uploadDocument(Document document,
PackageId packageId) |
Document |
uploadDocument(String fileName,
byte[] fileContent,
Document document,
DocumentPackage documentPackage)
Deprecated.
Please use uploadDocument(String fileName, byte[] fileContent, Document document, PackageId packageId) instead of this method.
|
Document |
uploadDocument(String fileName,
byte[] fileContent,
Document document,
PackageId packageId) |
List<Document> |
uploadDocuments(PackageId packageId,
Document... documents) |
List<Document> |
uploadDocuments(PackageId packageId,
List<Document> documents) |
public static final String API_KEY
public static final String BASE_URL
public static final String API_TOKEN_CONFIG
public EslClient(String apiKey, String baseURL)
apiKey - the api key tokenbaseURL - the eSignLive base urlpublic EslClient(String apiKey, String baseURL, String webpageURL)
apiKey - the api key tokenbaseURL - the eSignLive base urlwebpageURL - the eSignLive web page urlpublic EslClient(String apiKey, String baseURL, String webpageURL, boolean allowAllSSLCertificates)
public EslClient(String apiKey, String baseURL, ProxyConfiguration proxyConfiguration)
public EslClient(String apiKey, String baseURL, boolean allowAllSSLCertificates, ProxyConfiguration proxyConfiguration)
public EslClient(String apiKey, String baseURL, boolean allowAllSSLCertificates, ProxyConfiguration proxyConfiguration, boolean useSystemProperties, Map<String,String> headers)
public EslClient(ApiTokenConfig apiTokenConfig, String baseURL, boolean allowAllSSLCertificates, ProxyConfiguration proxyConfiguration, boolean useSystemProperties, Map<String,String> headers)
public PackageService getPackageService()
public DataRetentionSettingsService getDataRetentionSettingsService()
public VirtualRoomService getVirtualRoomService()
public ReportService getReportService()
public SessionService getSessionService()
public FieldSummaryService getFieldSummaryService()
public AuditService getAuditService()
public EventNotificationService getEventNotificationService()
public AuthenticationTokensService getAuthenticationTokensService()
public CustomFieldService getCustomFieldService()
public SigningStyleService getSigningStyleService()
public SignatureImageService getSignatureImageService()
public PackageId createPackage(DocumentPackage documentPackage)
Creates the package.
This basically does the followings:
- converts the document package to JSON format
- makes an eSL REST call to actually create the package. Is is using as payload the above generated JSON content.
documentPackage - the document packagepublic void updatePackage(PackageId packageId, DocumentPackage documentPackage)
Update the package, when the package status is only Draft
packageId - documentPackage - the document packagepublic void changePackageStatusToDraft(PackageId packageId)
Change the package's status from SENT to DRAFT.
packageId - public void configureDocumentVisibility(PackageId packageId, DocumentVisibility visibility)
Configure the document visibility.
packageId - visibility - the document visibilitypublic DocumentVisibility getDocumentVisibility(PackageId packageId)
Get document visibility.
packageId - public PackageId createPackageOneStep(DocumentPackage documentPackage)
documentPackage - the document packagepublic void signDocument(PackageId packageId, String documentName)
packageId - the package iddocumentName - the document name of the document to signpublic void signDocument(PackageId packageId, String documentName, CapturedSignature capturedSignature)
packageId - the package iddocumentName - the document name of the document to signcapturedSignature - the captured signature string to use when signingpublic void signDocuments(PackageId packageId)
packageId - the package idpublic void signDocuments(PackageId packageId, CapturedSignature capturedSignature)
packageId - the package idcapturedSignature - the captured signature string to use when signingpublic void signDocuments(PackageId packageId, String signerId)
packageId - the package idsignerId - the signer idpublic void signDocuments(PackageId packageId, String signerId, CapturedSignature capturedSignature)
packageId - the package idsignerId - the signer idcapturedSignature - the captured signature string to use when signingpublic PackageId createAndSendPackage(DocumentPackage documentPackage)
Creates a new packages, and immediately sends it to be signed.
documentPackage - the document package to be created and signedpublic PackageId createPackageFromTemplate(PackageId packageId, DocumentPackage documentPackage)
packageId - the package ID used as template for the new packagedocumentPackage - the document package@Deprecated public PackageId createPackageFromTemplate(DocumentPackage documentPackage, PackageId packageId)
public void sendPackage(PackageId id)
It does the followings for the package ID specified as argument:
- activates the package
- send emails to signers and the package owner
- sends notifications (if any)
id - the package IDpublic List<FieldSummary> getFieldValues(PackageId packageId)
packageId - the package ID@Deprecated public SessionToken createSenderSessionToken()
AuthenticationTokensService.createSenderAuthenticationToken(java.lang.String)
or AuthenticationTokensService.createUserAuthenticationToken() depending if you want to
create a token to authenticate as the package sender or the api key user.@Deprecated public SessionToken createSignerSessionToken(PackageId packageId, String signerId)
@Deprecated public SessionToken createSessionToken(PackageId packageId, String signerId)
AuthenticationTokensService.createSignerAuthenticationToken(java.lang.String, java.lang.String).Creates a session token for the package and user provided as parameters.
The content of SessionToken that is returned by this method is needed to access
the signing ceremony on behalf of the signer for whom the session was generated
packageId - the package IDsignerId - the signer IDEslExceptionpublic DocumentPackage getPackage(PackageId packageId)
packageId - The document package identifierpublic List<Document> getDocuments(PackageId packageId, String signerId)
packageId - The document package identifiersignerId - the signer IDpublic List<Signer> getSigners(PackageId packageId, String documentId)
packageId - The document package identifierdocumentId - the document IDpublic byte[] downloadDocument(PackageId packageId, String documentId)
packageId - the package IDdocumentId - the document IDpublic byte[] downloadOriginalDocument(PackageId packageId, String documentId)
packageId - the package IDdocumentId - the document IDpublic byte[] downloadEvidenceSummary(PackageId packageId)
packageId - the package IDpublic byte[] downloadZippedDocuments(PackageId packageId)
packageId - the package IDpublic SigningStatus getSigningStatus(PackageId packageId, SignerId signerId, DocumentId documentId)
@Deprecated public Document uploadDocument(String fileName, byte[] fileContent, Document document, DocumentPackage documentPackage)
public Document uploadDocument(String fileName, byte[] fileContent, Document document, PackageId packageId)
public List<Document> uploadDocuments(PackageId packageId, List<Document> documents)
@Deprecated public Document uploadDocument(Document document, DocumentPackage documentPackage)
public void uploadAttachment(PackageId packageId, String attachmentId, String filename, byte[] fileContent, String signerId)
public void uploadAttachment(PackageId packageId, String attachmentId, Map<String,byte[]> files, String signerId)
public void createSignerVerification(PackageId packageId, String roleId, SignerVerification signerVerification)
public SignerVerification getSignerVerification(PackageId packageId, String roleId)
public void updateSignerVerification(PackageId packageId, String roleId, SignerVerification signerVerification)
public void deleteAttachmentFile(PackageId packageId, String attachmentId, Integer fileId, String signerId)
public GroupService getGroupService()
public AccountService getAccountService()
public AccountConfigService getAccountConfigService()
public ApprovalService getApprovalService()
public ReminderService getReminderService()
public TemplateService getTemplateService()
public AttachmentRequirementService getAttachmentRequirementService()
public LayoutService getLayoutService()
public QRCodeService getQrCodeService()
public SystemService getSystemService()
public SigningService getSigningService()
Copyright 2022 OneSpan All rights reserved.