public final class SignApi extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SignApi.Behaviour
The behaviour of a signing process.
|
static class |
SignApi.Crypto
Has cryptography related functions.
|
static class |
SignApi.Dialog
Can present a dialog of the loaded document
on the device.
|
static class |
SignApi.Pdf
Has PDF-related functions.
|
static class |
SignApi.SigningUpdateEvent |
Modifier and Type | Method and Description |
---|---|
static byte[] |
GetPdfFromSignedXml() |
static byte[] |
GetSignedXml()
Downloads the xml document.
|
static void |
load()
Loads the shared library for
whose name starts with "SigSignAPI.WrapperNE".
|
static void |
Sclose() |
static boolean |
setLicense(String verifiedString)
Sets the verified string.
|
static boolean |
sign(SignApi.Pdf.SignatureField signatureField,
SignApi.Pdf.SignatureInfo signatureInfo,
SignApi.Behaviour behaviour)
Performs a signing process with the chosen signature field.
|
static boolean |
StartXmlSigning(String xmlDocumentPath)
Signs a xmldocument which contains pdf and other info
|
static boolean |
viewDocument(int pageNumber,
SignApi.Behaviour.Zoom.Level zoomLevel,
boolean startSignatureButtonEnabled)
Displays the loaded document on the device.
|
public static void load()
public static void Sclose()
public static boolean sign(SignApi.Pdf.SignatureField signatureField, SignApi.Pdf.SignatureInfo signatureInfo, SignApi.Behaviour behaviour)
signatureField
- The signature field to sign.signatureInfo
- Signature information such as the name of the signer.behaviour
- How to perform the signature.SignApi.Pdf.loadPdf(byte[])
.
Devices can be searched and selected with
DeviceApi.enumerateDevices()
and
DeviceApi.setDevice(com.so.net.DeviceApi.Device.Name)
.
Use SignApi.Pdf.downloadPdf()
to get the signed document.public static boolean viewDocument(int pageNumber, SignApi.Behaviour.Zoom.Level zoomLevel, boolean startSignatureButtonEnabled)
pageNumber
- The page number.zoomLevel
- The zoom level.startSignatureButtonEnabled
- Whether the start signature button shall be enabled or disabled.SignApi.Pdf.loadPdf(byte[])
.
Devices can be searched and selected with
DeviceApi.enumerateDevices()
and
DeviceApi.setDevice(com.so.net.DeviceApi.Device.Name)
.public static boolean StartXmlSigning(String xmlDocumentPath)
xmlDocumentPath
- The path where the xmlDocument which contains pdf and other info is stored.public static byte[] GetSignedXml()
public static byte[] GetPdfFromSignedXml()
public static boolean setLicense(String verifiedString)
verifiedString
- The verified string.Copyright © 2024. All rights reserved.