Previous Topic: Method 1: Initializing the API by Using the Properties FileNext Topic: Preparing Additional Inputs


Method 2: Initializing the API by Using the Map

The initialize(java.util.Map initproperty) method in the RiskFactory class initializes the Risk Evaluation API based on the property map provided. The following table provides the details of the map that initialize() method uses.

Description

Input Value

Output Value

Initializes the Risk Evaluation API by using the provided map.

  • map
    The key-value pair specifying the configuration information. The supported keys are:
    – HOST.1
    The IP address of the host where RiskMinder Server is available.
    – PORT.1
    The port at which RiskMinder Server is available. Default value is 7680.
    – TRANSPORT_TYPE
    The type of the connection. Possible values include SSL and TCP.
    – CA_CERT_FILE
    (Required only if TRANSPORT_TYPE is set to SSL.) The path for the CA certificate file of the server. The file must be in PEM format. Provide the complete path for the file.

Throws RFSDKException if the API was not initialized successfully.