HID APPROVE SDK 6.1
HID Approve SDK for iOS/macOS
Loading...
Searching...
No Matches
<HIDSyncOTPGenerator> Protocol Reference

Extends the OTP generator to support synchronous time or event based generation. (HOTP, TOTP). More...

#include <HIDSyncOTPGenerator.h>

Inheritance diagram for <HIDSyncOTPGenerator>:
<HIDOTPGenerator>

Instance Methods

(NSString *) - getOTP:error:
 Compute the one-time password.
Instance Methods inherited from <HIDOTPGenerator>
(id< HIDAlgorithmParameters >) - getAlgorithmParameters
(NSString *) - getName
(NSString *) - getType
(NSString *) - getVersion

Detailed Description

Extends the OTP generator to support synchronous time or event based generation. (HOTP, TOTP).

Method Documentation

◆ getOTP:error:

- (NSString *) getOTP: (NSString *) password
error: (NSError **) error 

Compute the one-time password.

Parameters
passwordOTP key password (if protected by password).
errorerror details. It may be nil.

Possible error codes are:

Returns
The formatted OTP.