HSM user management.
See the HSM technical documentation.
Data Structures | |
struct | DinamoClient.UserTrustInfo |
Functions | |
void | ChangePasswordUser (string szPassword) |
void | ChangeUserPassword (string szPassword) |
Changes the current user's password. | |
void | AssignEventToken (string szUserId, byte[] byKey) |
It associates a standard event OTP token OATH with a user. After this call, the user will only authenticate with username, password and OTP. | |
void | AssignTimeToken (string szUserId, byte[] byKey, UInt64 iInitialTime, Int16 iStep) |
It associates a standard time OTP token OATH with a user. After this call, the user will only authenticate with username, password and OTP. | |
void | UnassignToken (string szUserId) |
Disassociates OTP authentication from a user. After this call, the user will only authenticate with username and password. | |
void | OATHResync (string szUser, string szOTP1, string szOTP2) |
Re-synchronizes an event token, standard OATH, associated with an HSM user. It receives two consecutive OTPs, generated by the token, to synchronize the state of the token in the HSM user. | |
int | GetUserAuthMask (string szUserName) |
Retrieves the user's authorization mask. | |
UserTrustInfo[] | ListUserTrusts (string user, byte bType) |
Recover the user's relationships of trust. | |
string[] | ListUsers () |
Lists HSM users. | |
void | BlockUser (string szUserName, bool bBlock) |
Blocks or unblocks a user. | |
void | SetUserAuthMask (string szUserName, int iACL) |
Defines a user's authorization mask. | |
int | GetUserInvalidLoginAttempts (string szUserName) |
Recovers the number of invalid login attempts since the last successful authentication. | |
bool | IsUserBlocked (string szUserName) |
Checks if a user is blocked. | |
void | CreateUser (string UserId, string Password) |
Creates an ordinary user, without system permissions. | |
void | RemoveUser (string UserId) |
Remove a user. | |
|
inline |
|
inline |
Changes the current user's password.
szPassword | New password. |
DinamoException | Throws exception in case of error. |
|
inline |
It associates a standard event OTP token OATH with a user. After this call, the user will only authenticate with username, password and OTP.
szUserId | User name. |
byKey | Key(seed) used to define the standard OTP OATH. |
DinamoException | Throws exception in case of error. |
|
inline |
It associates a standard time OTP token OATH with a user. After this call, the user will only authenticate with username, password and OTP.
szUserId | User name. | ||||
byKey | Key(seed) used to define the standard OTP OATH. | ||||
iInitialTime | T0 used by the token. Defined in seconds.
|
iStep | Time step value in seconds. In addition to setting the time step in seconds for TOTP blobs, the following values are also supported.
|
DinamoException | Throws exception in case of error. |
|
inline |
Disassociates OTP authentication from a user. After this call, the user will only authenticate with username and password.
szUserId | User name. |
DinamoException | Throws exception in case of error. |
|
inline |
Re-synchronizes an event token, standard OATH, associated with an HSM user. It receives two consecutive OTPs, generated by the token, to synchronize the state of the token in the HSM user.
szUser | User name. |
szOTP1 | First OTP, for synchronization, generated by the token. |
szOTP2 | Second OTP, for synchronization, generated by the token. |
DinamoException | Throws exception in case of error. |
|
inline |
Retrieves the user's authorization mask.
szUserName | User name. |
DinamoException | Throws exception in case of error. |
|
inline |
Recover the user's relationships of trust.
user | User name. |
bType | Operation type: DinamoApi.OP_LST_USR_TRUSTERS to list the users who trust the specified user. DinamoApi.OP_LST_USR_TRUSTEES to list the users that the current user trusts. |
DinamoException | Throws exception in case of error. |
|
inline |
Lists HSM users.
DinamoException | Throws exception in case of error. |
|
inline |
Blocks or unblocks a user.
szUserName | User name. |
bBlock | true to block and false to unblock. |
DinamoException | Throws exception in case of error. |
|
inline |
Defines a user's authorization mask.
szUserName | User name. | ||||||||||||||||||||||||
iACL | The user's authorization mask must be assembled by concatenating the values below:
|
DinamoException | Throws exception in case of error. |
|
inline |
Recovers the number of invalid login attempts since the last successful authentication.
szUserName | User name. |
DinamoException | Throws exception in case of error. |
|
inline |
Checks if a user is blocked.
szUserName | User name. |
DinamoException | Throws exception in case of error. |
|
inline |
Creates an ordinary user, without system permissions.
UserId | User name. It must be unique, made up of alphanumeric characters. Uppercase and lowercase characters are case-sensitive. Maximum size of DinamoApi.MAX_USR_LEN |
Password | User password. Uppercase and lowercase characters are case-sensitive. Maximum size of DinamoApi.MAX_USR_PWD |
DinamoException | Throws exception in case of error. |
|
inline |
Remove a user.
UserId | User name. |
DinamoException | Throws exception in case of error. |