Create Authenticated Session using SessionLevelConfig
To create an authenticated session with multiple servers, user needs to configure multiple properties files, in addition to the global properties file. These properties files are referred to as the local properties files that is - local to a server.
To create an authenticated session with multiple servers, the getSession()
call must include SessionLevelConfig
object. The SessionLevelConfig
object takes the local CADP_for_JAVA.properties
file path as an input. It initializes the Load Balancer Configuration from local properties file, for a session.
NAESession session = NAESession.getSession("user", "pswd".toCharArray(),new SessionLevelConfig ("/usr/CADP_for_JAVA.properties"));
The following parameters must be set in the local properties file:
NAE_IP.1
NAE_Port/KMIP_Port
Client_Cert_Alias
Client_Cert_Passphrase
Key_Store_Location
Key_Store_Password
Important Points
The
NAE_IP.1
andNAE_Port
/KMIP_Port
parameters work in combination. In case, any one parameter from the combination is left blank, the combination is taken from the global properties file. In case of tiers, fallback scenario will be considered only whenNAE_ IP.1
orNAE_Port
/KMIP_Port
parameters for all tiers are blank.The
Protocol
parameter for load balancer configuration is always set as per global properties file, even in case of local session.In case of SSL, there is no fallback mechanism for
Client_Cert_Alias
,Client_Cert_Passphrase
,Key_Store_Location
, andKey_Store_Password
parameters.