public interface DsFormattingDevice
| Modifier and Type | Method and Description |
|---|---|
DsCapParameters |
getCapParameters(SecureString challenge,
Template.DomainType domain,
DsCapParameters.DsCapMode capMode,
DsTransactionData dsTransactionData)
Get the CAP parameters for the given DS challenge and associated
transaction data.
|
DsCapParameters |
getCapParameters(Template.DomainType domain,
DsCapParameters.DsCapMode capMode,
DsTransactionData dsTransactionData)
Get the CAP parameters for the given DS transaction data.
|
<T extends Primitive> |
getPrimitive(java.lang.String name)
Get a primitive for the given tag name.
|
Template |
getTemplate(int templateId)
Get a DS template by id.
|
Template |
getTemplate(SecureString challenge)
Get a DS template from a challenge.
|
Template getTemplate(SecureString challenge) throws InvalidDigitChecksumException
challenge - the challengenull if no template was encoded in
the challengeInvalidDigitChecksumException - when a computed check digit does not match the given check digit.Template getTemplate(int templateId)
templateId - the id of the templatenull if no template was found with
that id<T extends Primitive> T getPrimitive(java.lang.String name)
name - the name of the primitive as defined in the JSON
configuration file.DsCapParameters getCapParameters(SecureString challenge, Template.DomainType domain, DsCapParameters.DsCapMode capMode, DsTransactionData dsTransactionData) throws InvalidDigitChecksumException
challenge - the challenge or null if there is no challenge.domain - the template domain. Can only be Template.DomainType.CONNECTED or Template.DomainType.SWYS if challenge is null.capMode - the CAP mode to generate input data fordsTransactionData - the template transaction data or null if there
is no transaction data.java.lang.IllegalArgumentException - when the challenge does not correspond
to the transaction data (only applies if the challenge is non-null).InvalidDigitChecksumException - when a computed check digit does not match the given check digit.DsCapParameters getCapParameters(Template.DomainType domain, DsCapParameters.DsCapMode capMode, DsTransactionData dsTransactionData) throws InvalidDigitChecksumException
domain - the template domain. Can only be Template.DomainType.CONNECTED or Template.DomainType.SWYS.capMode - the CAP mode to generate input data fordsTransactionData - the template transaction data or null if there
is no transaction data.InvalidDigitChecksumException - when a computed check digit does not match the given check digit.