HID APPROVE SDK  5.12
HID Approve SDK for iOS/macOS
 All Classes Files Functions Variables Enumerations Enumerator Properties Pages
<HIDOTPGenerator> Protocol Reference

A base protocol for OTP generators. More...

#import <HIDOTPGenerator.h>

Inheritance diagram for <HIDOTPGenerator>:
<HIDSyncOTPGenerator>

Instance Methods

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

Detailed Description

A base protocol for OTP generators.

Method Documentation

- (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.
- (NSString*) getName

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

Returns
The generator name.
- (NSString*) getType

The type of OTP generator. Supported types:

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

The version of OTP generator.

Returns
The generator version.