How to correctly utilize the RSASecurIDAuthenticationEngine.resynch method
3 years ago
Originally Published: 2006-08-30
Article Number
000042449
Applies To
SAE for Java Version 2.2 and below
Issue
How to correctly utilize the RSASecurIDAuthenticationEngine.resynch method
SAE Javadoc mentions possible return value of NEXT_CODE_REQUIRED but does not describe required action when this status is returned.
Resolution
The resynch method must be called a second time with the next tokencode.  I.e the NEXT_CODE_REQUIRED return status is expected for an initial call to resynch.

Providing the two consecutive tokencodes minimizes the possibility of incorrectly setting the token's offset and causing subsequent authentication errors.