User identifier in the HSM. Maximum size of constants.MAX_USR_LEN.
HSM user password. Maximum size of constants.MAX_USR_PWD_LEN.
User permissions in HSM. Default: enums.USER_PERMISSIONS.NOP.
Returns true if the user is successfully created.
Example code: Creating a user
Removes a user from HSM.
User identifier in the HSM. Maximum size of constants.MAX_USR_LEN.
Returns true if the user is successfully removed.
Example code: Removing a user
Blocks a user in HSM.
User identifier in the HSM. Maximum size of constants.MAX_USR_LEN.
Returns true if the user is successfully blocked.
Example code: Blocking a user
Unlocks a user in HSM.
User identifier in the HSM. Maximum size of constants.MAX_USR_LEN.
Returns true if the user is successfully unlocked.
Example code: Unlocking a user
Changes the authenticated user's password.
New HSM user password. The size must be between constants.MIN_USR_PWD_LEN and constants.MAX_USR_PWD_LEN.
Returns true if the password was changed successfully.
Example code: Changing the access password
Lists the authenticated user's tokens.
Returns an array with the user's tokens.
Example code: Listing access tokens
Generates a token for the authenticated user.
Token expiration date. Default: No expiration.
Returns the generated token.
Example code: Generating an access token
Revoke an authenticated user's token.
The token to be revoked, generated by the generateToken method or returned by listTokens.
Returns true if the token is successfully revoked.
Example code: Revoking an access token
Create a user in HSM.