SmartCard IO

  • SmartCardIO - AB Circle specific TerminalFactory Class

    A factory for CardTerminal objects. It allows an application to:

    • obtain a TerminalFactory by calling one of the static factory methods in this class (getDefault() or getInstance()).
    • use this TerminalFactory object to access the CardTerminals by calling the terminals() method.

    This TerminalFactory is using the following standard type name: “PC/SC” - an implementation that calls into the PC/SC Smart Card stack of the host platform.

    Note: This TerminalFactory is the default and only TerminalFactory available for use.

    See more

    Declaration

    Swift

    @objcMembers
    public class ABCircleTerminalFactory : Status
  • SmartCardIO - CardTerminals Class

    The set of terminals supported by a TerminalFactory. This class allows applications to enumerate the available CardTerminals, obtain a specific CardTerminal, or wait for the insertion or removal of cards.

    See more

    Declaration

    Swift

    @objcMembers
    public class CardTerminals : BaseClass
  • SmartCardIO - CardTerminal class

    A Smart Card terminal, sometimes refered to as a Smart Card Reader. A CardTerminal object can be obtained by calling CardTerminals.list() or CardTerminals.getTerminal(). Note that physical card readers with slots for multiple cards are represented by one CardTerminal object per such slot.

    See more

    Declaration

    Swift

    @objcMembers
    public class CardTerminal : BaseClass
  • SmartCardIO - Card class

    A Smart Card with which a connection has been established. Card objects are obtained by calling CardTerminal.connect().

    See more

    Declaration

    Swift

    @objcMembers
    public class Card : BaseClass
  • SmartCardIO - CardChannel class

    A logical channel connection to a Smart Card. It is used to exchange APDUs with a Smart Card. A CardChannel object can be obtained by calling the method Card.getBasicChannel() or Card.openLogicalChannel().

    See more

    Declaration

    Swift

    @objcMembers
    public class CardChannel : BaseClass
  • ATR

    SmartCardIO - ATR class

    A Smart Card’s answer-to-reset bytes. A Card’s ATR object can be obtained by calling Card.getATR().

    See more

    Declaration

    Swift

    @objcMembers
    public class ATR : BaseClass
  • SmartCardIO - CommandAPDU Class

    A command APDU following the structure defined in ISO/IEC 7816-4. It consists of a four byte header and a conditional body of variable length. This class does not attempt to verify that the APDU encodes a semantically valid command.

    Note that when the expected length of the response APDU is specified in the constructors, the actual length (Ne) must be specified, not its encoded form (Le). Similarly, getNe() returns the actual value Ne. In other words, a value of 0 means “no data in the response APDU” rather than “maximum length.”

    This class supports both the short and extended forms of length encoding for Ne and Nc. However, note that not all terminals and Smart Cards are capable of accepting APDUs that use the extended form.

    See more

    Declaration

    Swift

    @objcMembers
    public class CommandAPDU : BaseClass
  • SmartCardIO - ResponseAPDU Class

    A response APDU as defined in ISO/IEC 7816-4. It consists of a conditional body and a two byte trailer. This class does not attempt to verify that the APDU encodes a semantically valid response.

    See more

    Declaration

    Swift

    @objcMembers
    public class ResponseAPDU : BaseClass