Class Slot


  • @Deprecated
    public final class Slot
    extends java.lang.Object
    Deprecated.
    use slot number instead
    A Slot object represents an individual slot of a card terminal.

    Author:
    Peter Trommler (trp@zurich.ibm.com), Stephan Breideneich (sbreiden@de.ibm.com)
    See Also:
    CardTerminal
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int slotID
      Deprecated.
      The slot identifier.
      protected CardTerminal terminal
      Deprecated.
      The "owning" CardTerminal.
    • Constructor Summary

      Constructors 
      Constructor Description
      Slot​(CardTerminal terminal, int slotID)
      Deprecated.
      Instantiate a Slot object belonging to the CardTerminal object terminal.
    • Field Detail

      • terminal

        protected CardTerminal terminal
        Deprecated.
        The "owning" CardTerminal.
      • slotID

        protected int slotID
        Deprecated.
        The slot identifier.
    • Constructor Detail

      • Slot

        public Slot​(CardTerminal terminal,
                    int slotID)
        Deprecated.
        Instantiate a Slot object belonging to the CardTerminal object terminal.
        Parameters:
        terminal - The card terminal to which this Slot belongs to
        slotID - Slot number (0 = first slotID)
    • Method Detail

      • isCardPresent

        public boolean isCardPresent()
                              throws CardTerminalException
        Deprecated.
        Check whether there is a smart card present.
        Returns:
        True if there is a smart card inserted in the slot.
        Throws:
        CardTerminalException - Thrown when terminal.isCardPresent failed.
      • getCardID

        public CardID getCardID()
                         throws CardTerminalException
        Deprecated.
        Return the CardID object of the presently inserted smart card. In the case this slot is in use already (i.e., there is already a CardService attached to this slot), this method returns a cached CardID immediately.

        Returns:
        The CardID object for the currently inserted smart card.
        Throws:
        CardTerminalException - Thrown when problems in the card terminal occur.
      • getCardTerminal

        public CardTerminal getCardTerminal()
        Deprecated.
        Return a reference to the "owning" CardTerminal object.
        Returns:
        The reference to the owning CardTerminal object.
      • getSlotID

        public int getSlotID()
        Deprecated.
        Return the Slot number.
        Returns:
        the slot number.