EMDsFormattingDevice Protocol Reference

Conforms to NSObject
Declared in EMDsFormattingDevice.h

Overview

A protocol representing a Dynamic Signature (DS) device.

– templateFromChallenge: required method

Get a DS template from a challenge.

- (id<EMTemplate>)templateFromChallenge:(id<EMSecureString>)challenge

Parameters

challenge

The challenge.

Return Value

The template, nil if no template was encoded in the challenge.

Declared In

EMDsFormattingDevice.h

– templateWithId: required method

Gets a DS template by id.

- (id<EMTemplate>)templateWithId:(NSInteger)templateId

Parameters

templateId

The id of the template.

Return Value

The template, nil if no template was found with that id.

Declared In

EMDsFormattingDevice.h

– primitiveWithName: required method

Gets a primitive by name.

- (id<EMPrimitive>)primitiveWithName:(NSString *)name

Parameters

name

The name of the primitive as defined in configuration file.

Return Value

The primitive, nil if no primitive was found with that name.

Availability

2.1

Declared In

EMDsFormattingDevice.h

– capParametersWithChallenge:domain:dsCapMode:transactionData: required method

Gets the CAP parameters for the given DS challenge and associated transaction data.

- (EMDsCapParameters *)capParametersWithChallenge:(id<EMSecureString>)challenge domain:(EMDomainType)domain dsCapMode:(EMDsCapMode)capMode transactionData:(id<EMDsTransactionData>)dsTransactionData

Parameters

challenge

The challenge, a runtime error will be raised if it does not encode the same template as the transaction data is for. Can be nil to compute an OTP in connected mode.

domain

The template domain.

capMode

The CAP mode to generate input data for.

dsTransactionData

The template transaction data. Can be nil if the challenge does not contain a valid template identifier in unconnected mode.

Return Value

The CAP input parameters.

Declared In

EMDsFormattingDevice.h

– capParametersWithDomain:dsCapMode:transactionData: required method

Gets the CAP parameters for the given domain and transaction data.

- (EMDsCapParameters *)capParametersWithDomain:(EMDomainType)domain dsCapMode:(EMDsCapMode)capMode transactionData:(id<EMDsTransactionData>)dsTransactionData

Parameters

domain

The template domain.

capMode

The CAP mode to generate input data for.

dsTransactionData

The template transaction data. Can be nil if the challenge does not contain a valid template identifier in unconnected mode.

Return Value

The CAP input parameters.

Availability

2.1

Declared In

EMDsFormattingDevice.h