in 6.7 IRM library, we notice in interface IIRMServiceInternal, EMC add a new method call DecryptIRMDocument(IDfSession session, IDfId objectId, String inputFile, String outputFile)
we hope to use that method to decrypt document, here is the sample code snipet is used:
irmService = (IIRMService) client.newService("com.documentum.services.irm.IIRMService", sessionManager);
IIRMServiceInternal irmServiceInternal = (IIRMServiceInternal)irmService;
if(irmServiceInternal.DecryptIRMDocument(session,doc.getObjectId(), encryptedFile, decryptedFile))
{......
}
However, we receive the following errors, does someone else run into similar issues?
2012-10-18 12:02:49,955 ERROR gov.nyc.doitt.mocs.ecm.method.AttachIRMProfile com.documentum.services.irm.impl.irmserver.IRMDecryptorProxy$IRMDecryptorException: com.emcirm.edsdecrypt.EDSException: ¸
at com.documentum.services.irm.impl.irmserver.IRMDecryptorProxy$IRMDecryptorException.throwException(IRMDecryptorProxy.java:49)
at com.documentum.services.irm.impl.irmserver.IRMDecryptorProxy.callMethod(IRMDecryptorProxy.java:113)
at com.documentum.services.irm.impl.irmserver.IRMDecryptorProxy.EDSDecryptDocumentForIndexing(IRMDecryptorProxy.java:139)
at com.documentum.services.irm.impl.IRMServiceImpl.DecryptIRMDocument(IRMServiceImpl.java:1321)
at test.AttachIRMProfile.removeIRMDocument(AttachIRMProfile.java:286)
at test.AttachIRMProfile.mainexecute(AttachIRMProfile.java:190)
at test.AttachIRMProfile.main(AttachIRMProfile.java:84)
Caused by: com.emcirm.edsdecrypt.EDSException: ¸
at com.emcirm.edsdecrypt.EDSDecryptor.decryptDocument(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.documentum.services.irm.impl.irmserver.IRMDecryptorProxy.callMethod(IRMDecryptorProxy.java:109)
... 5 more