ds.ov2.front
Class Card_services

java.lang.Object
  extended by ds.ov2.front.Card_services

public class Card_services
extends Object

Interface class to the XXX link global platform manager. Implements applet installation, deletion and card status for the frontoffice.

CPP Preprocessing
cpp preprocessing needed
Execution Environment:
host
Author:
Hendrik Tews
Version:
$Revision: 1.5 $
Last Commit:
$Date: 2009-05-12 10:00:15 $ by $Author: tews $

Constructor Summary
protected Card_services()
          Static class, object construction disabled.
 
Method Summary
static cardservices.AIDRegistry card_status(CardChannel channel, PrintWriter out, boolean full_apdus)
          Query card status.
static void reinstall_applet(CardChannel channel, PrintWriter out, boolean full_apdus, Applet_type applet_type, String applet_file)
          (Re-)Install applet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Card_services

protected Card_services()
Static class, object construction disabled.

Method Detail

card_status

public static cardservices.AIDRegistry card_status(CardChannel channel,
                                                   PrintWriter out,
                                                   boolean full_apdus)
                                            throws CardException
Query card status.

Parameters:
channel - the card channel to access the card
out - channel to print diagnostics/progress to
full_apdus - if true print full APDU's, otherwise print one dot per exchanged APDU
Returns:
AIDRegistry of the card
Throws:
CardException - if some communication error occurs

reinstall_applet

public static void reinstall_applet(CardChannel channel,
                                    PrintWriter out,
                                    boolean full_apdus,
                                    Applet_type applet_type,
                                    String applet_file)
                             throws CardException,
                                    IOException
(Re-)Install applet. If package_name is present on card delete it first. Then load and install applet_file without any installation arguments.

Parameters:
channel - card channel
out - diagnostics channel, pass null to disable diagnostics
full_apdus - if true print full APDU's on out, otherwise print one dot per exchanged APDU
applet_type - the applet to install
applet_file - cap file to load
Throws:
CardException - for communication errors
IOException - if applet_file cannot be opened