KSC Open API
13.1
Kaspersky Security Center API description
|
TOTP registration. More...
Public Member Functions | |
wstring | GenerateSecret ([out] params pSecret) |
Generates TotpSecret with random key. | |
DeleteSecret (wstring wstrSecretId) | |
Clears secret, identified by wstrSecretId. | |
SaveSecretForCurrentUser (wstring wstrSecretId, wstring wstrValidationCode) | |
Set TOTP 2FA authentication for current user. If validation code does not pass verification, function throws KLSTD::STDE_NOTPERM and current user TOTP settings don't change. If validation code passes verification, secret will be used as second factor when users logs in. If user already has registered TOTP secret, it will be replaced with new one. | |
boolean | IfCurrentUserMayClearSecret () |
Checks whether current user is allowed to reset his TOTP secret. | |
ClearSecretForCurrentUser () | |
Clears TOTP secret for current user. Function succeeds only if '2FA required for all' flag is not set, or if user is in exceptions list. |
TOTP registration.