Expand my Community achievements bar.

apply policy using standalone app with ssl security

Avatar

Former Community Member

Is it possible?

in my app, i change the url property http://host:8080 for https://host:8443 (i have already activated the ssl connection in the server)

but i have an error when i try to get the policies:

the code here:

PolicyManager policyManager = rightsClient.getPolicyManager();

Policy[] policies = policyManager.getPolicies(pf, 100);  <--- exception here

the error here:

SDKException: Internal error. -- An error occured while performing this operation(error code bin: 1, hex: 0x1)

what do you think?

2 Replies

Avatar

Former Community Member

Can you connect to the same server using Acrobat and retrieve a list of policies?  This will help determine if Rights Management and SSL are configured properly.

Regards

Steve

Avatar

Former Community Member

the configuration works

Using the same program i created a secure pdf file , then when i try to open the file, Reader ask me for user and password, using the correct user and password i can get into the file, even more , if i change the policy setting in the server (for example no print), and then put the policy in the pdf file and open the file , i can see the option print disable.

rgs