Java DTV API 1.3
18-Nov-2009

com.sun.dtv.smartcard
Class CardTerminal

java.lang.Object
  extended by com.sun.dtv.smartcard.CardTerminal

public abstract class CardTerminal
extends Object

Encapsulates the functionality of a physical card terminal.


Constructor Summary
CardTerminal()
           
 
Method Summary
abstract  void addCardTerminalListener(CardTerminalListener listener)
          Adds a new CardTerminalListener to the CardTerminal.
abstract  PassThroughAPDUConnection getConnection(int slotNumber)
          Creates an APDUConnection for the given CardTerminal with the given slot number.
abstract  int getSlotNumber()
          Retrieves the slot number of this CardTerminal object, the framework is responsible to assign each card terminal build in or connected to the device a slot number.
abstract  void removeCardTerminalListener(CardTerminalListener listener)
          Removes a CardTerminalListener to the CardTerminal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CardTerminal

public CardTerminal()
Method Detail

getSlotNumber

public abstract int getSlotNumber()
Retrieves the slot number of this CardTerminal object, the framework is responsible to assign each card terminal build in or connected to the device a slot number.

Returns:
the slot number that is assigned to this CardTerminal

addCardTerminalListener

public abstract void addCardTerminalListener(CardTerminalListener listener)
Adds a new CardTerminalListener to the CardTerminal.

Parameters:
listener - will receive events from this CardTerminal object
See Also:
removeCardTerminalListener(com.sun.dtv.smartcard.CardTerminalListener)

removeCardTerminalListener

public abstract void removeCardTerminalListener(CardTerminalListener listener)
Removes a CardTerminalListener to the CardTerminal.

Parameters:
listener - be removed from the CardTerminal
See Also:
addCardTerminalListener(com.sun.dtv.smartcard.CardTerminalListener)

getConnection

public abstract PassThroughAPDUConnection getConnection(int slotNumber)
Creates an APDUConnection for the given CardTerminal with the given slot number. This is a specific APDUConnections that lets all kind of APDU commands passthrough. No checking is performed on the framework level like it is described in JSR 177 for this connection.

Parameters:
slotNumber - The identifier of the slot.
Returns:
A connection to send Command APDUs to the card and receive Response APDUs from the card.

Java DTV API 1.3
18-Nov-2009

Copyright © 2008-2009 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved.

U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.Products covered by and information contained in this service manual are controlled by U.S. Export Control laws and may be subject to the export or import laws in other countries. Nuclear, missile, chemical biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export or reexport to countries subject to U.S. embargo or to entities identified on U.S. export exclusion lists, including, but not limited to, the denied persons and specially designated nationals lists is strictly prohibited.

DOCUMENTATION IS PROVIDED AS IS AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.

Use of this document is subject to license terms.