EMSoftOathSettings Protocol Reference

Conforms to NSObject
Declared in EMSoftOathSettings.h

Overview

Protocol for OATH related settings.

  hotpLength required method

Returns the length of an HOTP.

@property (assign, nonatomic, readonly) NSInteger hotpLength

Discussion

Default: 8

Declared In

EMSoftOathSettings.h

  hotpHashAlgorithm required method

Returns the hash algorithm used in the HMAC computation for HOTP.

@property (assign, nonatomic, readonly) EMOathHashAlgorithm hotpHashAlgorithm

Discussion

Default: EMOathHashSHA1. see EMOathHashAlgorithm.

Declared In

EMSoftOathSettings.h

  totpLength required method

Returns the length of an TOTP.

@property (assign, nonatomic, readonly) NSInteger totpLength

Discussion

Default: 8

Declared In

EMSoftOathSettings.h

  totpHashAlgorithm required method

Returns the hash algorithm used in the HMAC computation for TOTP.

@property (assign, nonatomic, readonly) EMOathHashAlgorithm totpHashAlgorithm

Discussion

Default: EMOathHashSHA1. see EMOathHashAlgorithm.

Declared In

EMSoftOathSettings.h

  totpStartTime required method

Returns the T0 start time used in the settings.

@property (assign, nonatomic, readonly) int64_t totpStartTime

Discussion

Default: 0

Declared In

EMSoftOathSettings.h

  totpTimestepSize required method

Returns the time step size used in the settings.

@property (assign, nonatomic, readonly) NSInteger totpTimestepSize

Discussion

Default: 30

Declared In

EMSoftOathSettings.h

  totpTimestepType required method

Returns the time step type for TOTP.

@property (assign, nonatomic, readonly) EMOathTimestepType totpTimestepType

Discussion

Default: Seconds

Declared In

EMSoftOathSettings.h

  ocraOtpLength required method

Returns the length of an OCRA OTP.

@property (assign, nonatomic, readonly) NSInteger ocraOtpLength

Discussion

Default: 8

Declared In

EMSoftOathSettings.h

  ocraHashAlgorithm required method

Returns the hash algorithm used in the HMAC computation.

Default: EMOathHashSHA1. See EMOathHashAlgorithm.

@property (assign, nonatomic, readonly) EMOathHashAlgorithm ocraHashAlgorithm

Declared In

EMSoftOathSettings.h

  ocraStartTime required method

Returns the T0 start time used in the settings.

Default: 0

@property (assign, nonatomic, readonly) int64_t ocraStartTime

Declared In

EMSoftOathSettings.h

  ocraTimestepType required method

Returns the time step type used in the settings.

@property (assign, nonatomic, readonly) EMOathTimestepType ocraTimestepType

Discussion

Default: EMTotpTimestepTypeSeconds. See EMOathTimestepType.

Declared In

EMSoftOathSettings.h

  ocraTimestepSize required method

Returns the time step size used in the settings.

@property (assign, nonatomic, readonly) NSInteger ocraTimestepSize

Discussion

Default: 30

Declared In

EMSoftOathSettings.h

  ocraCounterUsed required method

Returns YES if Counter is used, NO otherwise.

@property (assign, nonatomic, readonly, getter=isOcraCounterUsed) BOOL ocraCounterUsed

Discussion

Default: NO

Declared In

EMSoftOathSettings.h

  ocraChallengeQuestionFormat required method

Returns the format of the Challenge Question field.

@property (assign, nonatomic, readonly) EMOcraChallengeQuestionFormat ocraChallengeQuestionFormat

Discussion

Default: EMOcraChallengeQuestionFormatNumeric. See EMOcraChallengeQuestionFormat.

Declared In

EMSoftOathSettings.h

  ocraSessionLength required method

Returns the session length, -1 if not used.

@property (assign, nonatomic, readonly) NSInteger ocraSessionLength

Discussion

Default: -1

Declared In

EMSoftOathSettings.h

  ocraPasswordHashAlgorithm required method

Returns the used password hash algorithm.

@property (assign, nonatomic, readonly) EMOcraPasswordHashAlgorithm ocraPasswordHashAlgorithm

Discussion

Default: EMOcraPasswordNone. See EMOcraPasswordHashAlgorithm.

Declared In

EMSoftOathSettings.h

  ocraMaximumChallengeQuestionLength required method

Returns the maximum length of Challenge Question.

@property (assign, nonatomic, readonly) NSInteger ocraMaximumChallengeQuestionLength

Discussion

Default: 8

Declared In

EMSoftOathSettings.h

– getOcraSuite: required method

Returns the OCRA suite for the OCRA settings.

- (id<EMSecureString>)getOcraSuite:(NSError **)error

Parameters

error

If an error occurs, upon return contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL.

Default OCRA-1:HOTP-SHA1-8:QN08-T30S

Declared In

EMSoftOathSettings.h