com.jaccal
Class JaccalPCSCSession
java.lang.Object
com.jaccal.Session
com.jaccal.JaccalPCSCSession
- public class JaccalPCSCSession
- extends Session
Jaccal-PCSC specific implementation of the Session
- Author:
- Thomas Tarpin-Lyonnet
Fields inherited from class com.jaccal.Session |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sessionPcsc
private JaccalPCSC sessionPcsc
inUse
private boolean inUse
JaccalPCSCSession
public JaccalPCSCSession()
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.