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

A base protocol for OTP generators. More...

#include <HIDOTPGenerator.h>

Inheritance diagram for <HIDOTPGenerator>:
<HIDAsyncOTPGenerator> <HIDSyncOTPGenerator> <HIDOCRAGenerator>

Instance Methods

(id< HIDAlgorithmParameters >) - getAlgorithmParameters
(NSString *) - getName
(NSString *) - getType
(NSString *) - getVersion

Detailed Description

A base protocol for OTP generators.

Method Documentation

◆ getAlgorithmParameters

- (id< HIDAlgorithmParameters >) getAlgorithmParameters

Returns The structure containing all of the algorithm parameters for OTP generator. For instance OCRASuite, time-step, counter, length...

Returns
The instance of algorithm parameters.

◆ getName

- (NSString *) getName

The name of the generator. TOTP, HOTP, OCRA,...

Returns
The generator name.

◆ getType

- (NSString *) getType

The type of OTP generator. Supported types:

  • Synchronous (time or event based)
  • Asynchronous (challenge-response)
Returns
The generator type.

Reimplemented in <HIDAsyncOTPGenerator>.

◆ getVersion

- (NSString *) getVersion

The version of OTP generator.

Returns
The generator version.