@RemoteServiceRelativePath(value="sign")
public interface SignService
extends com.google.gwt.user.client.rpc.RemoteService
| Modifier and Type | Method and Description |
|---|---|
String[] |
extractSubjectSignatures(String sid,
long userId,
Long docId,
String fileVersion)
Extracts the certificate subjects names from an uploaded .p7m file.
|
boolean |
resetSignature(String sid,
long userId)
Reset from the user folder the signature file associated to the given
user.
|
String |
signDocument(String sid,
long userId,
long docId,
String version)
Verifies the user signature file, checks if the uploaded file's digest
and the document's file digest are equals, then signs the document.
|
String |
storeSignature(String sid,
long userId,
String signerName)
Stores on the user folder the certificate file associated to the given
signer name.
|
String[] extractSubjectSignatures(String sid, long userId, Long docId, String fileVersion) throws InvalidSessionException
sid - The session identifieruserid - Identifier of the user that is saving the signature or that
wants to retrieve the signers of a signed document to verify it.docId - Id of signed document to verify (optional)fileVersion - The file version of the document to verify (optional)InvalidSessionExceptionString storeSignature(String sid, long userId, String signerName) throws InvalidSessionException
sid - The session identifieruserid - Identifier of the user that is saving the signaturesignerName - The name of the certificate signerInvalidSessionExceptionString signDocument(String sid, long userId, long docId, String version) throws InvalidSessionException
sid - The session identifieruserid - Identifier of the user that is performing the signaturedocId - Identifier of the document to signversion - The version of the given document that must be sugned
(optional)InvalidSessionExceptionboolean resetSignature(String sid, long userId) throws InvalidSessionException
sid - The session identifieruserid - Identifier of the user for which will be reset the
signatureInvalidSessionExceptionCopyright © 2008-2014 Logical Objects. All Rights Reserved.