Counter Property

The counter used for HMAC-Based One Time Password creation or validation.

Syntax

ANSI (Cross Platform)
int64 GetCounter();
int SetCounter(int64 lCounter); Unicode (Windows) LONG64 GetCounter();
INT SetCounter(LONG64 lCounter);
@property (nonatomic,readwrite,assign,getter=counter,setter=setCounter:) long long counter;
- (long long)counter;
- (void)setCounter:(long long)newCounter;
#define PID_ONETIMEPASSWORD_COUNTER 1

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 holds the counter value used for HMAC-Based One Time Password creation or validation. When PasswordAlgorithm is set to paHOTP this value must be specified before calling CreatePassword or ValidatePassword. The value should be incremented each time a password is created.

The default value is 0.

This property is not applicable when using the Time-Based One Time Password algorithm.

Data Type

Long64

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Auth 2020 C++ Edition - Version 20.0 [Build 8155]