Take a survey

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

Revoking access to documents using the web service API
To revoke access to a policy-protected PDF 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 policy-protected PDF document that is revoked.
Create a System.IO.FileStream object by invoking its constructor and passing a string value that represents the file location of the policy-protected PDF document to revoke 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 policy-protected document by invoking the RightsManagementServiceService object’s getLicenseID method and passing the BLOB object that represents the policy-protected document. This method returns a string value that represents the license identifier.
Revoke the policy-protected document by invoking the RightsManagementServiceService object’s revokeLicense method and passing the following values:
A string value that specifies the license identifier value of the policy-protected document (specify the return value of the RightsManagementServiceService object’s getLicenseId method).
A static data member of the Reason enum that specifies the reason to revoke the document. For example, you can specify Reason.DOCUMENT_REVISED.
A string value that specifies the URL location to where a revised document is located. If you do not want to redirect a user to another URL, then you can pass null.
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/policiesRevokingDocuments.82.4.html