PasswordAlgorithm Property
The algorithm used to create or validate the password.
Syntax
ANSI (Cross Platform) int GetPasswordAlgorithm();
int SetPasswordAlgorithm(int iPasswordAlgorithm); Unicode (Windows) INT GetPasswordAlgorithm();
INT SetPasswordAlgorithm(INT iPasswordAlgorithm);
Possible Values
PA_TOTP(0),
PA_HOTP(1)
@property (nonatomic,readwrite,assign,getter=passwordAlgorithm,setter=setPasswordAlgorithm:) int passwordAlgorithm; - (int)passwordAlgorithm; - (void)setPasswordAlgorithm:(int)newPasswordAlgorithm;
Possible Values
PA_TOTP(0),
PA_HOTP(1)
#define PID_ONETIMEPASSWORD_PASSWORDALGORITHM 3 IPWORKSAUTH_EXTERNAL void* IPWORKSAUTH_CALL IPWorksAuth_OneTimePassword_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSAUTH_EXTERNAL int IPWORKSAUTH_CALL IPWorksAuth_OneTimePassword_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
0
Remarks
This property specifies whether to use the HMAC-Based or Time-Based One Time Password algorithm. Possible values are:
0 (paTOTP - default) | Time-Based One Time Password Algorithm. |
1 (paHOTP) | HMAC-Based One Time Password Algorithm. |
Data Type
Integer