Previous Topic: Generating PasscodesNext Topic: Exception


API Details

The following table lists the input and output parameters of the generateOTP() method.

Parameter

Description

Input Parameters

Id

The unique identifier of the account.

pwd

ArcotID OTP PIN.

params

The parameters that are required for generating passcodes. You need to set the parameters based on the type of OTP to be generated. For example:

 

  • TOTP
    Hashtable params = new Hashtable();
    params.put(OTP.P_TIME, "123456789");
    Note: As mentioned in the previous table, the P_TIME value needs to be provided only if an OTP is being generated for a time other than the current time.

 

  • CAP or DPA Mode 1
    Hashtable params = new Hashtable();
    params.put(OTP.P_MODE, OTP.M_1); params.put(OTP.P_AA, "123.45");
    params.put(OTP.P_UN, "0123456789");

 

  • CAP or DPA Mode 2 with TDS
    Hashtable params = new Hashtable(); params.put(OTP.P_MODE, OTP.M_2_TDS);
    params.put(OTP.P_DATA + "0", "123");
    params.put(OTP.P_DATA + "1", "456");
    params.put(OTP.P_DATA + "2", "789");

 

  • CAP or DPA Mode 3
    Hashtable params = new Hashtable();
    params.put(OTP.P_MODE, OTP.M_3);
    params.put(OTP.P_UN, "0123456789");

Output Parameters

The generated passcode.