Sample code uses Command Client username, password, provider URL, and JNDI information stored in the clear.
To be invoked by the SDK connection code, the class must be referenced in the CommandClientAppContextOverrides.xml file ConnectionInfoProvider bean definition (instead of com.rsa.command.PropertiesConnectionInfoProvider).
For example:
package com.mycompany.client;
public class MyProvider implements com.rsa.command.ConnectionInfoProvider {
private String propertiesFile = null; //using a file to store the properties
public void setPropertiesFile(String propertiesFile) { //invoked by Spring framework if specified in bean definition
this.propertiesFile = propertiesFile;
}
public String getStringValue(String key) {
String prop = null;
//retrieve (and decrypt) the specified property from propertiesFile
return prop;
}
}
The bean definition in CommandClientAppContextOverrides.xml would then be:
...
<!--
| Override the definition of ConnectionInfoProvider
|-->
<bean name="ConnectionInfoProvider"
class="com.mycompany.client.MyProvider"
lazy-init="false">
<property name="propertiesFile" value="config.properties"/>
</bean>
...
Related Articles
Tips on configuring an ACE/Server 5.0 environment for proper hostname resolution. 7Number of Views What is my DRAC IP Address 41Number of Views Error: 'AttributePluginException: error encountered while trying to convert a user property: samlattr6: java.lang.IllegalA… 9Number of Views Error "Unable to generate TSF URL" on RSA Authentication Manager 8.x 44Number of Views What is the purpose of the Java node 'Calculate Items To Work On' in the Access Fulfilment Express (AFX) Default Fulfillme… 63Number of Views
Trending Articles
How to manipulate imported RSA SecurID Software Token(s) on an iPhone or iPad device RSA Governance & Lifecycle 8.0.0 Installation Guide How to Detect and Resolve Stalled Workflows and Workpoint Issues in RSA Identity Governance & Lifecycle RSA Authentication Manager 8.2 reports 'Unexpected error during command com.rsa.admin.GetPrincipalNestedGroupsCommand exec… RSA Authentication Manager 8.9 Patches and Hotfixes Readme