userOtpAlgorithm (property)
The algorithm used to generate one-time passwords (OTP) for this user, either HOTP (Hash-based OTP) or TOTP (Time-based OTP).
Syntax
- (int)userOtpAlgorithm:(int)userIndex; - (void)setUserOtpAlgorithm:(int)userIndex:(int)newUserOtpAlgorithm;
/* Possible Values */
OA_NONE(0),
OA_HMAC(1),
OA_TIME(2)
public func userOtpAlgorithm(userIndex: Int32) throws -> KmipserverUserOtpAlgorithms
public func setUserOtpAlgorithm(userIndex: Int32, newUserOtpAlgorithm: KmipserverUserOtpAlgorithms) throws -> Void
public enum KmipserverUserOtpAlgorithms : Int32 { case oaNone = 0 case oaHmac = 1 case oaTime = 2 }
Default Value
0
Remarks
The algorithm used to generate one-time passwords (OTP) for this user, either HOTP (Hash-based OTP) or TOTP (Time-based OTP). In the former case, a value of a dedicated counter is used to generate a unique password, while in the latter the password is generated on the basis of the current time value.
oaHmac | 0 | |
oaTime | 1 |
The UserIndex parameter specifies the index of the item in the array. The size of the array is controlled by the UserCount property.