Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Assembler
Viewing all articles
Browse latest Browse all 10743

Can we avoid specifying User ID & password for connecting to LiveCycle server through code?

$
0
0
Hi,

I am developing a JAVA program that connects to the LiveCycle ES server to assemble two PDF files. Here is some part of the code I am using. The code works fine.

Properties connectionProps = new Properties();
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAUL T_EJB_ENDPOINT, "jnp://localhost: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, "administrator");
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDEN TIAL_PASSWORD, "password");

ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);

AssemblerServiceClient assemblerClient = new AssemblerServiceClient(myFactory);

If I do not use the credential info (user ID and password) I get some credential exceptions. Is there a way that I can avoid providing the credential information? The reason for this is I do not want to hardcode the user ID and password information as the password can change. Is there any other way to solve this issue?

Regards,
Ragha

Viewing all articles
Browse latest Browse all 10743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>