com.jaccal
Class JaccalPCSCSession

java.lang.Object
  extended bycom.jaccal.Session
      extended bycom.jaccal.JaccalPCSCSession

public class JaccalPCSCSession
extends Session

Jaccal-PCSC specific implementation of the Session

Author:
Thomas Tarpin-Lyonnet

Field Summary
private  boolean inUse
           
private  JaccalPCSC sessionPcsc
           
 
Fields inherited from class com.jaccal.Session
 
Constructor Summary
JaccalPCSCSession()
           
 
Method Summary
 void close()
          Closes the session
 CardResponse execute(Command command)
          Directly sends APDU commands to the card
 String getSessionReader()
           
 boolean isInUse()
           
 Atr open()
          Initializes the session for update access.
 void setSessionPcsc(JaccalPCSC sessionPcsc)
           
 
Methods inherited from class com.jaccal.Session
commit, getCard, getName, setName, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessionPcsc

private JaccalPCSC sessionPcsc

inUse

private boolean inUse
Constructor Detail

JaccalPCSCSession

public JaccalPCSCSession()
Method Detail

open

public Atr open()
         throws CardException
Initializes the session for update access.

Overrides:
open in class Session
Throws:
CardException

close

public void close()
           throws CardException
Closes the session

Overrides:
close in class Session
Throws:
CardException
See Also:
close()

execute

public CardResponse execute(Command command)
                     throws CardException
Directly sends APDU commands to the card

Overrides:
execute in class Session
Parameters:
command - The command object
Returns:
A card response object
Throws:
CardException
See Also:
execute(com.jaccal.command.Command)

setSessionPcsc

public void setSessionPcsc(JaccalPCSC sessionPcsc)
Parameters:
sessionPcsc - The sessionPcsc to set.

isInUse

public boolean isInUse()
Returns:
State of

getSessionReader

public String getSessionReader()
Returns:
The reader name attached to this session


Copyright © 2005 Chang Sau Sheong, Thomas Tarpin-Lyonnet. All Rights Reserved.