Interface SignService
- All Superinterfaces:
- com.google.gwt.user.client.rpc.RemoteService
@RemoteServiceRelativePath("sign")
public interface SignService
extends com.google.gwt.user.client.rpc.RemoteService
The client side stub for the Sign Service. This service gives all needed
 methods to handle documents signature.
- Since:
- 6.1
- Author:
- Matteo Caruso - LogicalDOC
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionvoidDelete the certificate of the current uservoiddeleteKeystore(long tenantId) Deletes the actual key storevoidGenerates a self-signes certificate for the current user.voidgenerateNewKeystore(GUIKeystore keystore) Discards the actual key store and generates a new oneRead the uploaded file and returns it's contentvoidimporKeystore(GUIKeystore keystore) voidimportCertificate(String certificate, String privateKey) Imports an uploaded certificatebooleanloadKeystore(long tenantId) Gets the keystore's metadata of the given tenantvoidsaveKeystore(GUIKeystore keystore) voidsignDocuments(List<Long> docIds, String reason, int page, String signX, String signY, String signWidth) 
- 
Method Details- 
loadKeystoreGets the keystore's metadata of the given tenant- Parameters:
- tenantId- identifier of the tenant
- Returns:
- the key store
- Throws:
- ServerException- an error happened in the server application
 
- 
generateNewKeystoreDiscards the actual key store and generates a new one- Parameters:
- keystore- the key store details
- Throws:
- ServerException- an error happened in the server application
 
- 
generateNewCertificateGenerates a self-signes certificate for the current user.- Throws:
- ServerException- an error happened manipulating the keystore
 
- 
importCertificateImports an uploaded certificate- Parameters:
- certificate- the certificate to import (x509 format)
- privateKey- the private key to import (PKCS8 format)
- Throws:
- ServerException- an error happened manipulating the keystore
 
- 
getUploadedContentRead the uploaded file and returns it's content- Returns:
- the file's content
- Throws:
- ServerException- an error happened manipulating the keystore
 
- 
deleteCertificateDelete the certificate of the current user- Throws:
- ServerException- an error happened in the server application
 
- 
deleteKeystoreDeletes the actual key store- Parameters:
- tenantId- identifier of the tenant
- Throws:
- ServerException- an error happened in the server application
 
- 
saveKeystore- Throws:
- ServerException
 
- 
imporKeystore- Throws:
- ServerException
 
- 
isVisualSignatureEnabled- Throws:
- ServerException
 
- 
signDocumentsvoid signDocuments(List<Long> docIds, String reason, int page, String signX, String signY, String signWidth) throws ServerException - Throws:
- ServerException
 
 
-