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 was created successfully.
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 was successfully removed.
Example code: Removing a user
Blocks a user in HSM.
User identifier in the HSM. Maximum size of constants.MAX_USR_LEN.
Example code: Blocking a user
Unlocks a user in HSM.
User identifier in the HSM. Maximum size of constants.MAX_USR_LEN.
Example code: Unlocking a user
Changes the authenticated user's password.
New HSM user password. 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 tokens of the authenticated user.
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.
Token to be revoked. The token generated by the generateToken method or returned by the listTokens method.
Returns true if the token was successfully revoked.
Example code: Revoking an access token
Create a user in HSM.