opencard.opt.terminal
Interface PowerManagementInterface


public abstract interface PowerManagementInterface

A CardTerminal that implements the PowerMangementInterface can power down and power up the smart card in a slot.

See Also:
CardTerminal

Method Summary
 void powerDownCard(int slotID, int timeout)
          Power down an inserted smartcard.
 void powerUpCard(int slotID, int timeout)
          Power up an inserted smartcard.
 

Method Detail

powerUpCard

public void powerUpCard(int slotID,
                        int timeout)
                 throws opencard.core.terminal.CardTerminalException
Power up an inserted smartcard.

Parameters:
slotID - slot identifier
timeout - The time to wait before returning (in seconds); -1 signals an indefinite timeout (i.e., wait forever).
Throws:
opencard.core.terminal.CardTerminalException - Thrown when there is no card present or a timeout occurs.

powerDownCard

public void powerDownCard(int slotID,
                          int timeout)
                   throws opencard.core.terminal.CardTerminalException
Power down an inserted smartcard.

Parameters:
slotID - slot identifier
timeout - The time to wait before returning (in seconds); -1 signals an indefinite timeout (i.e., wait forever).
Throws:
opencard.core.terminal.CardTerminalException - Thrown when there is no card present or a timeout occurs.