Previous Topic: Fetching ArcotID OTP DetailsNext Topic: Saving Additional ArcotID OTP Attributes


Managing Additional ArcotID OTP Attributes

To set ArcotID OTP information that cannot be passed by using the fields listed in ArcotID OTP Details, you need to use the setAttribute() method and pass that information as name-value pairs, and to read that information use getAttribute() method. The following table explains these methods:

Method

Description

setAttribute()

This method is used to set the ArcotID OTP information that cannot be passed by using the fields listed in ArcotID OTP Details. The additional information is passed as name-value pairs.

Input Parameters:

  • The name of the attribute. For example, if you want to display your organization copyright information along with the user details on the client application, then you can set a new attribute called Copyright.
  • The value (in string format) that has to be set for the attribute.

getAttribute()

This method is used to read the value of ArcotID OTP attributes.

Input Parameters:

  • The name of the attribute, whose value has to be fetched.

Output Parameters:

  • Attribute value in string format.