Take a survey

Developing Applications Using APIs > Protecting Documents with Policies > Reinstating Access to Revoked Documents > Reinstating access to revoked documents using the web service API

Reinstating access to revoked documents using the web service API
To reinstate access to a revoked document using the Rights Management web service API, perform the following tasks:
1.
2.
Using the Microsoft .NET client assembly, create a RightsManagementServiceService object by invoking its default constructor. Next, set authentication values required to invoke LiveCycle ES.
3.
Create a BLOB object by using its constructor. The BLOB object is used to store a revoked PDF document to which access is reinstated.
Create a System.IO.FileStream object by invoking its constructor and passing a string value that represents the file location of the revoked PDF document and the mode in which to open the file.
Create a byte array that stores the content of the System.IO.FileStream object. You can determine the size of the byte array by getting the System.IO.FileStream object’s Length property.
Populate the byte array with stream data by invoking the System.IO.FileStream object’s Read method and passing the byte array, the starting position, and the stream length to read.
Populate the BLOB object by assigning its binaryData property with the contents of the byte array.
4.
Retrieve the license identifier value of the revoked document by invoking the RightsManagementServiceService object’s getLicenseID method and passing the BLOB object that represents the revoked document. This method returns a string value that represents the license identifier.
Reinstate access to the revoked PDF document by invoking the RightsManagementServiceService object’s unrevokeLicense method and passing a string value that specifies the license identifier value of the revoked PDF document (specify the return value of the RightsManagementServiceService object’s getLicenseId method).
View Quick Start
 

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/policiesReinstateDocuments.83.4.html