Skip navigation
ArneAtAdobe
Currently Being Moderated

Security Manager for decryption is not set

Mar 7, 2011 9:39 AM

Hey,

I am using the Livecycle virtual appliance in a test version to evaluate its features. When I decrypt an encrypted document with the java API I get an error message that says that the security manager is not set.

 

Is the security Manager part of the appliance?

 

How can I solve that problem?

 

 

My Code:

        //Set connection properties required to invoke LiveCycle ES                               
        Properties connectionProps = new Properties();
        connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAUL T_EJB_ENDPOINT, getConfig("lc.ejb-endpoint.url", "jnp://192.168.56.50:1099"));
        connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSP ORT_PROTOCOL,ServiceClientFactoryProperties.DSC_EJB_PROTOCOL);          
        connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER _TYPE, "JBoss");
        connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDEN TIAL_USERNAME, getConfig("lc.ejb-endpoint.username", "jjacobs"));
        connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDEN TIAL_PASSWORD, getConfig("lc.ejb-endpoint.password", "password"));
                   
        //Create a ServiceClientFactory object
        ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
           
        //Create an EncryptionServiceClient object
        EncryptionServiceClient encryptClient = new EncryptionServiceClient(myFactory);
   
        //Unlock the password-encrypted PDF document
        Document unlockedDoc = encryptClient.unlockPDFUsingPassword(pdf, pdfPassword);
       
        return unlockedDoc;

 

 

 

Exceptions details:

Caused by: com.adobe.internal.pdftoolkit.core.exceptions.PDFSecurityAuthorizatio nException: Security Manager for decryption is not set
    at com.adobe.internal.pdftoolkit.core.encryption.EncryptionImpl.getStrea mEncryption(EncryptionImpl.java:196)
    at com.adobe.internal.pdftoolkit.core.encryption.EncryptionImpl.getStrea mDecryptionHandler(EncryptionImpl.java:263)
    at com.adobe.internal.pdftoolkit.core.cos.CosEncryption.getStreamDecrypt ionStateHandler(CosEncryption.java:675)
    at com.adobe.internal.pdftoolkit.core.cos.CosStream.getStreamForCopying( CosStream.java:377)
    at com.adobe.internal.pdftoolkit.core.cos.CosStream.copyStream(CosStream .java:310)
    at com.adobe.internal.pdftoolkit.core.cos.CosStream.getStream(CosStream. java:422)
    at com.adobe.internal.pdftoolkit.core.cos.CosObjectStream.getDataStream( CosObjectStream.java:130)
    at com.adobe.internal.pdftoolkit.core.cos.CosObjectStream.<init>(CosObje ctStream.java:80)
    at com.adobe.internal.pdftoolkit.core.cos.CosToken.readObject(CosToken.j ava:576)
    at com.adobe.internal.pdftoolkit.core.cos.CosToken.readIndirectObject(Co sToken.java:108)
    at com.adobe.internal.pdftoolkit.core.cos.XRefTable.getIndirectObject(XR efTable.java:607)
    at com.adobe.internal.pdftoolkit.core.cos.CosDocument.getIndirectObject( CosDocument.java:2875)
    at com.adobe.internal.pdftoolkit.core.cos.XRefTable.getIndirectObject(XR efTable.java:599)
    at com.adobe.internal.pdftoolkit.core.cos.CosDocument.getIndirectObject( CosDocument.java:2875)
    at com.adobe.internal.pdftoolkit.core.cos.CosDocument.resolveReference(C osDocument.java:1067)
    at com.adobe.internal.pdftoolkit.core.cos.CosDictionary.get(CosDictionar y.java:278)
    at com.adobe.internal.pdftoolkit.pdf.document.PDFCosDictionary.getDictio naryCosObjectValue(PDFCosDictionary.java:423)
    at com.adobe.internal.pdftoolkit.pdf.document.PDFCatalog.getInteractiveF orm(PDFCatalog.java:156)
    at com.adobe.internal.pdftoolkit.pdf.document.PDFDocument.getInteractive Form(PDFDocument.java:521)
    at com.adobe.formServer.utils.CommonGibsonUtils.isForm(CommonGibsonUtils .java:153)
    at com.adobe.livecycle.formdataintegration.server.FormData.exportDataInt ernal(FormData.java:338)
    at com.adobe.livecycle.formdataintegration.server.FormData.exportData2(F ormData.java:217)
    ... 81 more

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points