http://help.adobe.com/en_US/livecycle/10.0/ProgramLC/javadoc/com/adobe/livecycle/rightsmanagement/client/DocumentManager.html

com.adobe.livecycle.rightsmanagement.client
Interface DocumentManager

-------------------


http://help.adobe.com/en_US/AEMForms/6.1/ProgramLC/javadoc/com/adobe/livecycle/rightsmanagement/RightsManagementServiceInterface.html#getAllPolicySetNames()

com.adobe.livecycle.rightsmanagement
Interface RightsManagementServiceInterface


getAllPolicySetNames

java.util.List getAllPolicySetNames()
                                    throws SDKException

    Throws:
        SDKException

---------

getPolicyNames

java.util.List getPolicyNames(java.lang.String policySetName)
                              throws SDKException

    Throws:
        SDKException

---------

PolicySpec 	getMyPolicy(java.lang.String policyName, java.lang.String ownerUsername, java.lang.String ownerDomain)
          Retrieves the policy specified by the policyName/policyOwnerUsername/ownerDomain from the server.

---------

RMInspectResult inspectDocument(Document inDoc) 
           Retrieves the license information and other details for the specified protected document. 
           
==============

import com.adobe.livecycle.rightsmanagement.RMInspectResult

Interface RightsManagementServiceInterface

 Inspecting policy protected PDF documents using the Java API quick start in Programming with LiveCycle ES4.
 
com.adobe.livecycle.rightsmanagement.client.DocumentManager.inspectDocument()
Yes
No
A new method that belongs to the Rights Management service 
API


==============

//PROGRAMMING WITH AEM FORMS 
//Java API(SOAP) Quick Start (Code Examples)
//Last updated 5/3/2017

import com.adobe.livecycle.rightsmanagement.client.*; 
import com.adobe.livecycle.rightsmanagement.*;  

public class InspectDocument { 
	public static void main(String[] args) { 
		try 
		{ 
			//Set connection properties required to invoke AEM Forms 
			Properties connectionProps = new Properties(); 
			connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_SOAP_ENDPOINT, "http://[server]:[port]"); 
			connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,ServiceClientFactoryProperties.DSC_SOAP_PROTOCOL);           
			connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "JBoss"); 
			connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "administrator"); 
			connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "password"); 

			//Create a ServiceClientFactory instance 
			ServiceClientFactory factory = ServiceClientFactory.createInstance(connectionProps); 

			//Create a RightsManagementClient object 
			RightsManagementClient rightsClient = new RightsManagementClient(factory);

			//Reference a policy-protected PDF document to inspect 
			FileInputStream is = new FileInputStream("C:\\Adobe\PolicyProtectedLoanDoc.pdf"); 
			Document inPDF = new Document(is); 

			//Create a Document Manager object  
			DocumentManager  documentManager = rightsClient.getDocumentManager();

			//Inspect the policy-protected document 
			RMInspectResult inspectResult = documentManager.inspectDocument(inPDF); 

			//Get the document name 
			String documentName = inspectResult.getDocName(); 

			//Get the name of the policy 
			String policyName = inspectResult.getPolicyName(); 

			//Get the name of the document publisher 
			String pubName = inspectResult.getPublisherName(); 

			//Display the name of the policy-protected document and the policy 
			System.out.println("The policy protected document "+documentName +" is protected with the policy "+policyName +". The name of the publisher is "+pubName+"."); 
		} 
		catch (Exception ee) { 
			ee.printStackTrace();  
		} 
	} 
} 