How to use the Usage Type in CA Strong Authentication API (Java SDK) during verify credential call?
CA Strong Authentication Java SDK, release: 7.1.x,8.1.x
Usage Type is used for mapping credential profile and policy in multiple credentials scenario. To configure/use this functionality follow below steps:
1. Make sure corresponding issuance profile and authentication policy is configured with same Usage Type string.
2. Now when you create and verify OTP, enter the profilename and policyname respectively. Internally these will be mapped using the Usage Type.
3. Below is the Java code reference to make calls with policy/profile.
Reference file: <sample application>/flow/ArWFCreateOTP.jsp
OTPInput otpInput = new OTPInput();
CredentialInputList credInput = new CredentialInputList();
CredentialResponse credResponse = Issuance.Cred.create(userName, orgName, credInput, addInput);
Reference file: <sample application>/flow/ArWFOTPAuthenticate.jsp
public static final String ADDITIONAL_INPUT_AUTH_POLICY = "AR_WF_AUTH_POLICY";
AdditionalInput addInput = new AdditionalInput();
AuthResponse authResponse = Authentication.OTP.verifyOTP(userName, orgName, otp, tokenType, addInput);
More details and configuration instructions for Usage Type is explained in Understanding CA Strong Authentication Profiles and Policies and Configuring Profiles and Policies