HSM user management.
See the HSM technical documentation.
Functions | |
void | deleteUser (String userId) throws TacException |
Remove a User. | |
String[] | listUsers () throws TacException |
List HSM users. | |
boolean | isExistUser (String user) throws TacException |
Check if the user exists in the HSM. | |
void | createUser (String userId, String userPwd, int authMask) throws TacException |
Create a User. | |
void | changePassword (String newPassword) throws TacException |
Change the current user's password. | |
void | setUserBlockStatus (String user, boolean isBlocked) throws TacException |
Sets a user's lock status. | |
void | blockUser (String user) throws TacException |
Block a user. | |
void | unblockUser (String user) throws TacException |
Unblocks a user. | |
boolean | isUserBlocked (String user) throws TacException |
Checks if the user is blocked. | |
int | getUserInvalidLoginAttempts (String user) throws TacException |
Recovers the number of invalid login attempts by a user. | |
HSMCounterInfo | getHSMCounterInfo () throws TacException |
Retrieves information from HSM system counters. | |
int | getUserACL (String user) throws TacException |
Gets the bitmask of the user's authorizations. | |
void | setUserAuthMask (String user, int authMask) throws TacException |
Defines the bitmask of user authorizations. | |
void | updateUserObjPermission (String user, boolean create, boolean read, boolean del, boolean update) throws TacException |
Updates the current user's object access authorizations for another user. | |
void | updateUserSysPermission (String user, boolean create, boolean list, boolean log, boolean backup, boolean firmware) throws TacException |
Updates a user's system authorizations. | |
void | setUserOperator (String user) throws TacException |
Transforms a user into an operator user. | |
void | assignUserOATHHotp (String user, byte[] seed) throws TacException |
It associates a HOTP token in the OATH standard with an HSM user for 2-factor authentication. | |
void | assignUserOATHHotp (String user, byte[] seed, byte truncationOffset, byte type) throws TacException |
It associates a HOTP token in the OATH standard with an HSM user for 2-factor authentication. | |
void | assignUserOATHTotp (String user, byte[] seed, byte truncationOffset, byte type, int timeStep, long t0) throws TacException |
It associates a TOTP token in the OATH standard with an HSM user for 2-factor authentication. | |
void | assignUserOATHTotp (String user, byte[] seed) throws TacException |
It associates a TOTP token in the OATH standard with an HSM user for 2-factor authentication. | |
void | unassignUserOATH (String user, int param) throws TacException |
Disassociates a TOTP token from an HSM user. | |
void | unassignUserOATH (String user) throws TacException |
Disassociates a TOTP token from an HSM user. | |
void | resynchUserOATH (String user, String otp1, String otp2, int param) throws TacException |
Resynchronizes an HSM user's HOTP(event) token. | |
void | resynchUserOATH (String user, String otp1, String otp2) throws TacException |
Resynchronizes an HSM user's HOTP(event) token. | |
void deleteUser | ( | String | userId | ) | throws TacException |
Remove a User.
userId | User ID |
TacException |
String[] listUsers | ( | ) | throws TacException |
List HSM users.
TacException |
boolean isExistUser | ( | String | user | ) | throws TacException |
Check if the user exists in the HSM.
TacException |
void createUser | ( | String | userId, |
String | userPwd, | ||
int | authMask ) throws TacException |
Create a User.
userId | User ID |
userPwd | Password of the User to be created |
authMask | The User authorization mask must be assembled by concatenating the values below: |
TacException |
void changePassword | ( | String | newPassword | ) | throws TacException |
Change the current user's password.
For security reasons, it is not possible for HSM to Dinamo to change the password for a user other than the one currently logged in.
newPassword | New password |
TacException |
void setUserBlockStatus | ( | String | user, |
boolean | isBlocked ) throws TacException |
Sets a user's lock status.
user | User name. |
isBlocked | true for locked and false for unlocked. |
TacException |
void blockUser | ( | String | user | ) | throws TacException |
Block a user.
user | User name. |
TacException |
void unblockUser | ( | String | user | ) | throws TacException |
Unblocks a user.
user | User name. |
TacException |
boolean isUserBlocked | ( | String | user | ) | throws TacException |
Checks if the user is blocked.
user | User name. |
TacException |
int getUserInvalidLoginAttempts | ( | String | user | ) | throws TacException |
Recovers the number of invalid login attempts by a user.
This option is returned when the invalid login attempts password policy is enabled.
user | User name. |
TacException |
HSMCounterInfo getHSMCounterInfo | ( | ) | throws TacException |
Retrieves information from HSM system counters.
TacException |
int getUserACL | ( | String | user | ) | throws TacException |
Gets the bitmask of the user's authorizations.
This call obtains system authorizations.
user | User name. |
TacException |
void setUserAuthMask | ( | String | user, |
int | authMask ) throws TacException |
Defines the bitmask of user authorizations.
This call defines system and user authorizations.
user | Name of the user who will have their permissions set. |
authMask | Permissions bitmask. |
TacException |
void updateUserObjPermission | ( | String | user, |
boolean | create, | ||
boolean | read, | ||
boolean | del, | ||
boolean | update ) throws TacException |
Updates the current user's object access authorizations for another user.
user | Name of the user who will be given permission to access the current user's objects. |
create | Releases access to create and read objects. |
read | Releases object read access. |
del | Unlocks delete and read access to objects. |
update | Releases write/alter access to objects. |
TacException |
void updateUserSysPermission | ( | String | user, |
boolean | create, | ||
boolean | list, | ||
boolean | log, | ||
boolean | backup, | ||
boolean | firmware ) throws TacException |
Updates a user's system authorizations.
If the user is an operator, they will automatically lose this privilege and become an ordinary user.
user | Name of the user who will receive system permissions. |
create | Releases user creation/removal access. |
list | Release user list access. |
log | Unlocks access to retrieve the HSM's remote log. |
backup | Releases access to backup/restore the HSM. |
firmware | Release access to update the HSM firmware. |
TacException |
void setUserOperator | ( | String | user | ) | throws TacException |
Transforms a user into an operator user.
user | Name of the user who will receive the operator permission. |
TacException |
void assignUserOATHHotp | ( | String | user, |
byte[] | seed ) throws TacException |
It associates a HOTP token in the OATH standard with an HSM user for 2-factor authentication.
user | User who will have the associated token. |
seed | Seed OATH of the token. |
TacException |
void assignUserOATHHotp | ( | String | user, |
byte[] | seed, | ||
byte | truncationOffset, | ||
byte | type ) throws TacException |
It associates a HOTP token in the OATH standard with an HSM user for 2-factor authentication.
user | User who will have the associated token. | ||||
seed | Seed OATH of the token. | ||||
truncationOffset | The following amount is supported:
| ||||
type | At the moment this value should be as defined in the table.
|
TacException |
void assignUserOATHTotp | ( | String | user, |
byte[] | seed, | ||
byte | truncationOffset, | ||
byte | type, | ||
int | timeStep, | ||
long | t0 ) throws TacException |
It associates a TOTP token in the OATH standard with an HSM user for 2-factor authentication.
user | User who will have the associated token. | ||||
seed | Seed OATH of the token. | ||||
truncationOffset | The following amount is supported:
| ||||
type |
| ||||
timeStep | Time step value in seconds. In addition to setting the time step in seconds for TOTP blobs, the following values are also supported.
| ||||
t0 | Initial time value.
|
TacException |
void assignUserOATHTotp | ( | String | user, |
byte[] | seed ) throws TacException |
It associates a TOTP token in the OATH standard with an HSM user for 2-factor authentication.
user | User who will have the associated token. |
seed | Seed OATH of the token. |
TacException |
void unassignUserOATH | ( | String | user, |
int | param ) throws TacException |
Disassociates a TOTP token from an HSM user.
user | User whose token will be disassociated. | ||||||
param | Type of operation to be carried out.
|
TacException |
void unassignUserOATH | ( | String | user | ) | throws TacException |
Disassociates a TOTP token from an HSM user.
user | User whose token will be disassociated. |
TacException |
void resynchUserOATH | ( | String | user, |
String | otp1, | ||
String | otp2, | ||
int | param ) throws TacException |
Resynchronizes an HSM user's HOTP(event) token.
user | User to be resynchronized. |
otp1 | First OTP. |
otp2 | Second OTP. |
param | Reserved for future use. |
TacException |
void resynchUserOATH | ( | String | user, |
String | otp1, | ||
String | otp2 ) throws TacException |
Resynchronizes an HSM user's HOTP(event) token.
user | User to be resynchronized. |
otp1 | First OTP. |
otp2 | Second OTP. |
TacException |