Highlighted

Unable to inspect a document.

Avatar

Avatar

hmsdefender

Avatar

hmsdefender

hmsdefender

06-10-2016

I call the DocumentManager.inspectDocument(Document) method within a Java program to inspect a protected document. It throws an SDKException "Caller not authorized to execute the following method getLicense in the class com.adobe.edc.policy.APSDocumentServiceManagerBean". Using the old PPUtil.inspectDoc() method I would get back a response where I could extract the docId, the policyId, and other attributes. The program authenticates against the server with the users private PKI cert and a truststore, not via administrator username/password. How can a standalone client program get authorization to inspect a protected document?

I can use the RightsManagementEncryptionService.inspectPDFDocument with protected PDF files, but the response provide little useful information for me. Also, the application will be applying protection to Office files (haven't tried yet) and there isn't an "inspect" method for those under the RightsManagementEncryptionService.

Ron

Replies

Highlighted

Avatar

Avatar

lokeshpuri

Avatar

lokeshpuri

lokeshpuri

14-10-2016

For Java SDK's inspectDocument() the user being used to call the API needs to have either "open online" permission on the document (its policy) or should have "manage policyset" permission in UM or should have "manage documents" permission on document's policyset. For Java PPL's inspectDocument we dont execute any server callbacks and thus the information is limited.