Can anyone point me to where this value resides in the API? I can't seem to find it in the ServiceConfiguration, I also see no relavant options in ModifyServiceConfigurationInfo. I see m_anonymousAccess in the invoke Ooperation map but the value always seems to be null.
Invoking Document Services Using the Java APIs >
Setting Connection Properties >
Using a Context object to invoke Document Services
It contains some sample code.
// Authenticate a user and use the Context object within connection settings
// Authenticate the user
String username = "wblue";
String password = "password";
AuthResult authResult = authClient.authenticate(username, password.getBytes());
// Set a Content object that represents the authenticated user
// Use the Context object to invoke the Encryption service
Context myCtx = new Context();
//Set connection settings
Properties connectionProps = new Properties();
//Create a ServiceClientFactory object
ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
//Create an EncryptionServiceClient object
EncryptionServiceClient encryptClient = new EncryptionServiceClient(myFactory);
I appreciate the answer but I'm actually looking to change that actual setting as I want to turn off authentication all together for a couple of very specific services. In those scenarios I won't have a context at all.
Here's a bit of code that I'm hoping to add this logic to once I find where the setting exists:
ConfigParameter configParameters = serviceConfiguration.getConfigParameters();
ModifyServiceConfigurationInfo info = new ModifyServiceConfigurationInfo();
I'm trying to automate the lca deployment/configuration as much as possible as I need to deploy this to 5 seperate environments and those settings are always blown away. The deployment of our dsc's are fully automated with no human interaction, which is quite nice.