EMDsFormattingDevice Protocol Reference
| Conforms to | NSObject |
|---|---|
| Declared in | EMDsFormattingDevice.h |
– templateFromChallenge:
required method
Get a DS template from a challenge.
- (id<EMTemplate>)templateFromChallenge:(id<EMSecureString>)challengeParameters
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)templateIdParameters
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 *)nameParameters
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>)dsTransactionDataParameters
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 |
|---|---|
domain |
The template domain. |
capMode |
The CAP mode to generate input data for. |
dsTransactionData |
The template transaction data. Can be |
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>)dsTransactionDataParameters
domain |
The template domain. |
|---|---|
capMode |
The CAP mode to generate input data for. |
dsTransactionData |
The template transaction data. Can be |
Return Value
The CAP input parameters.
Availability
2.1
Declared In
EMDsFormattingDevice.h