counter (property)

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

Syntax

@property (nonatomic,readwrite,assign,getter=counter,setter=setCounter:) long long counter;
- (long long)counter;
- (void)setCounter:(long long)newCounter;
public var counter: Int64 {
  get {...}
set {...} }

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.

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