000039291 - How to change the RSA Authentication API Sample Code Return Statements

Document created by RSA Customer Support Employee on Oct 16, 2020
Version 1Show Document
  • View in full screen mode

Article Content

Article Number000039291
Applies ToRSA Product Set: RSA SecurID
RSA Product/Service Type: Authentication Agent API
RSA Version/Condition: 8.x
IssueWhen running the sample code for the RSA Authentication API 8.x, The statements that are returned after you start the Authentication looks like follows:
  • In case of an Authentication Failure:

Access Denied

  • In New Pin Mode:

New Pin accepted; please login again with the new Pin.

  • In case of a successful authentication:

Passcode Accepted
Authentication successful

Some customers use the Sample Code that is provided as it is, so they just need to customize the Output coming from the Sample Code.
ResolutionAfter downloading the .zip file for any 8.x RSA Authentication API from here:
  1. Unzip the folder, then go to examples then sample.
  2. Edit the file called AuthUser.java, this is the file that the Sample Code runs and it contains the main method.
  3. At the very first beginning of the file, you will see all the return values being initialized, you can change it to whatever you need, then do not forget to Save the File.

private static final String ACCESS_DENIED = "Access Denied";

private static final String PASSCODE_ACCEPTED = "Passcode Accepted";

private static final String PIN_REJECTED = "New Pin rejected";

private static final String PIN_ACCEPTED = "New Pin accepted; please login again with the new Pin.";

private static final String GOOD_AUTH = "Authentication successful";

private static final String BAD_AUTH = "Authentication incomplete";