Access Tokens in HYPR SDK for Java
The following commands are examples to show how access tokens can be used in HYPR SDK for Java:
//Registration
java -jar java-client-<version>.jar REGISTER https://<your_hypr_server_url>.com <api_access_token> highlandsBank username
//Authentication
java -jar java-client-<version>.jar AUTHENTICATE https://<your_hypr_server_url>.com <api_access_token> highlandsBank username
//Transaction
java -jar java-client-<version>.jar TRANSACTION https://<your_hypr_server_url>.com <api_access_token> highlandsBank username actionId transactionType transactionText
Registration
Navigate to the folder where the HYPR SDK for Java package is downloaded (or placed). To register the username, use the command below:
java -jar java-client-<version>.jar REGISTER https://<your_hypr_server_url>.com <api_access_token> highlandsBank username
For example: java -jar java-client-3.8.0-20200117.161944-11.jar REGISTER https://awsdevelop1.biometric.software 001fc0cf-0703-fb7d-ad44-07c7e3334bcb highlandsBank 20feb@droid1
The access token must be generated using the Control Center Access Tokens dialog for the respective application being tested; e.g., https://awsdevelop1.biometric.software/cc/app/highlandsBank/accessTokens
A QR code will be generated in your HOME directory.

QR code file:

Authentication
To authenticate the registered username (which can be an e-mail address) use the following command:
java -jar java-client-<version>.jar AUTHENTICATE https://<your_hypr_server_url>.com <api_access_token> highlandsBank username
For example: java -jar java-client-3.8.0-20200117.161944-11.jar AUTHENTICATE https://awsdevelop1.biometric.software 001fc0cf-0703-fb7d-ad44-07c7e3334bcb highlandsBank 20feb@droid1
A push notification is generated and the user accepts. After a successful authentication with HYPR, the user is granted access.
Transaction
To post a transaction on the registered username, use the command shown below:
java -jar java-client-<version>.jar TRANSACTION https://<your_hypr_server_url>.com <api_access_token> highlandsBank username actionId transactionType transactionText
For example: java -jar java-client-3.8.0-20200117.161944-11.jar TRANSACTION https://awsdevelop1.biometric.software 001fc0cf-0703-fb7d-ad44-07c7e3334bcb highlandsBank 20feb@droid1 completeMediumTransaction Wire $500
actionId
: Policy name.
transactionType
, transactionText
: Enter custom text.