EMOathFactory Class Reference

Inherits from NSObject
Declared in EMOathFactory.h

Overview

A factory for creating objects that produce or affect OATH (or its relatives) OTPs.

Create GemaltoOathDevice

– createGemaltoOathDeviceWithToken:error:

Creates a Gemalto OATH device with default settings returned from [EMOathFactory defaultSoftGemaltoOathSettings].

- (id<EMGemaltoOathDevice>)createGemaltoOathDeviceWithToken:(id<EMOathToken>)token error:(NSError **)error

Parameters

token

The token.

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.

Return Value

A Gemalto OATH device object.

Exceptions

NSInternalInconsistencyException

When the token suppports more than one key (e.g. a token with EMTokenCapabilityDUAL_SEED), and its key has not been selected. See EMTokenCapability.

Declared In

EMOathFactory.h

– createSoftGemaltoOathDeviceWithToken:settings:error:

Creates a customized soft Gemalto OATH device.

- (id<EMGemaltoOathDevice>)createSoftGemaltoOathDeviceWithToken:(id<EMSoftOathToken>)token settings:(id<EMSoftGemaltoOathSettings>)settings error:(NSError **)error

Parameters

token

The token.

settings

The Gemalto OATH settings.

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.

Return Value

A Gemalto OATH device.

Exceptions

NSInternalInconsistencyException

When the token suppports more than one key (e.g. a token with EMTokenCapabilityDUAL_SEED), and its key has not been selected. See EMTokenCapability.

Declared In

EMOathFactory.h

– mutableSoftGemaltoOathSettings

Creates a mutable Gemalto OATH settings.

- (id<EMMutableSoftGemaltoOathSettings>)mutableSoftGemaltoOathSettings

Return Value

New mutable settings based on the default settings returned from [EMOathFactory defaultSoftGemaltoOathSettings].

Declared In

EMOathFactory.h

– defaultSoftGemaltoOathSettings

Gets the default settings for Gemalto OATH devices.

- (id<EMSoftGemaltoOathSettings>)defaultSoftGemaltoOathSettings

Return Value

The default settings.

Declared In

EMOathFactory.h

Create OathDevice

– createSoftOathDeviceWithToken:settings:error:

Creates a customized soft OATH device using the specified settings.

- (id<EMOathDevice>)createSoftOathDeviceWithToken:(id<EMSoftOathToken>)token settings:(id<EMSoftOathSettings>)settings error:(NSError **)error

Parameters

token

The token.

settings

The OATH settings.

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.

Return Value

The OATH device.

Exceptions

NSInternalInconsistencyException

When the token suppports more than one key (e.g. a token with EMTokenCapabilityDUAL_SEED), and its key has not been selected. See EMTokenCapability.

Declared In

EMOathFactory.h

– mutableSoftOathSettings

Creates a mutable OATH settings.

- (id<EMMutableSoftOathSettings>)mutableSoftOathSettings

Return Value

New mutable OATH settings based on the default OATH settings returned from [EMOathFactory defaultSoftOathSettings].

Declared In

EMOathFactory.h

– defaultSoftOathSettings

Gets the default settings for OATH devices.

- (id<EMSoftOathSettings>)defaultSoftOathSettings

Return Value

The default settings.

Declared In

EMOathFactory.h

Create DcvOathDevice

– createSoftDcvOathDeviceWithToken:settings:error:

Creates a customized soft DCV OATH device using the specified settings.

- (id<EMDcvOathDevice>)createSoftDcvOathDeviceWithToken:(id<EMSoftOathToken>)token settings:(id<EMSoftDcvOathSettings>)settings error:(NSError **)error

Parameters

token

The token.

settings

The DCV OATH settings.

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.

Return Value

The DCV OATH device.

Exceptions

NSInternalInconsistencyException

When the token suppports more than one key (e.g. a token with EMTokenCapabilityDUAL_SEED), and its key has not been selected. See EMTokenCapability.

Declared In

EMOathFactory.h

– mutableSoftDcvOathSettings

Creates a mutable DCV OATH settings.

- (id<EMMutableSoftDcvOathSettings>)mutableSoftDcvOathSettings

Return Value

New mutable DCV OATH settings based on the default OATH settings returned from [EMOathFactory defaultSoftOathSettings].

Declared In

EMOathFactory.h

– defaultSoftDcvOathSettings

Gets the default settings for DCV OATH devices.

- (id<EMSoftDcvOathSettings>)defaultSoftDcvOathSettings

Return Value

The default settings.

Declared In

EMOathFactory.h