Previous Topic: Initializing the Risk Evaluation APINext Topic: Method 2: Initializing the API by Using the Map


Method 1: Initializing the API by Using the Properties File

The initialize(java.lang.String propertyLocation) method initializes the Risk Evaluation API by using the parameters listed in the input Properties file. If you pass NULL, then the parameters are read from the riskfort.risk-evaluation.properties file, which is present in the properties directory of CLASSPATH.

The fields and format of this properties file must be as follows:

//RiskFort Server IP address
HOST.1=

//RiskFort Server port number
PORT.1=

//Type of the connection. Possible values include SSL and TCP.
TRANSPORT_TYPE=

//Required if TRANSPORT_TYPE is set to SSL. The file must be in
//PEM format. Provide the complete path for the file.
CA_CERT_FILE=

The following table provides the details of the initialize() method.

Description

Input Parameter

Output Value

Initializes the Risk Evaluation API by using the specified Properties file.

  • propertyLocation
    The absolute path of the Properties file.

    Note: If you do not pass any value, then the value defaults to the default location of riskfort.risk-evaluation.properties.

Throws RFSDKException if the API was not initialized successfully.