Running the Sample
After completing the steps illustrated in Configuring SafeNet Java Authentication SDK, you need to perform the following additional actions to run the sample:
Note
Before running the sample, ensure that the current working directory is: usr/local/Thales/javasdk
.
- For Authentication call:
java -jar TestAPI.jar <user> <password>
- For Signature verification:
java -jar TestAPI.jar <token ID> <HASH> <Generated OTP>
In <password>
, enter the SafeNet OTP. Depending on the user-selected token type during authentication, any of the following character passcodes can also be provided:
- g for GrIDsure
- e for E-mail
- s for SMS
- p for Push OTP
Note
Ensure to use the username with special characters within an inverted comma. For example, java -jar TestAPI.jar '$jdoe' p