EMProtectorTotpSettings
@interface EMProtectorTotpSettings : NSObject
A time-based TOTP settings. To use this object default settings could be done by directly initializing it.
- - Since: 5.3
-
The TOTP length. Allowed range is 6-10 digits. @exception NSInvalidArgumentException When the length is not in allowed range.
Declaration
Objective-C
@property (nonatomic) NSInteger length;
Swift
var length: Int { get set }
-
The hash algorithm for TOTP.
Declaration
Objective-C
@property (nonatomic) EMFastTrackOathHashAlgorithm hashAlgorithm;
Swift
var hashAlgorithm: EMFastTrackOathHashAlgorithm { get set }
-
The T0 value for TOTP. Value to start counting the time steps. Default: 0 @exception NSInvalidArgumentException When the negative value is given.
Declaration
Objective-C
@property (nonatomic) int64_t startTime;
Swift
var startTime: Int64 { get set }
-
The time step size for TOTP. Default: 30 seconds.
Declaration
Objective-C
@property (nonatomic) NSInteger timestepSize;
Swift
var timestepSize: Int { get set }
-
The time step type for TOTP.
Declaration
Objective-C
@property (nonatomic) EMFastTrackOathTimestepType timestepType;
Swift
var timestepType: EMFastTrackOathTimestepType { get set }