com.jaccal
Class Session

java.lang.Object
  extended bycom.jaccal.Session
Direct Known Subclasses:
JaccalPCSCSession

public abstract class Session
extends Object

A Session controls access to the card.

Author:
Chang Sau Sheong, Thomas Tarpin-Lyonnet
See Also:
SessionFactory, JaccalPCSCSession

Field Summary
private  String name
           
 
Constructor Summary
Session()
           
 
Method Summary
 void close()
          Closes the session.
 void commit()
          Commits the changes to the card.
 CardResponse execute(Command command)
          Directly sends APDU commands to the card.
 Card getCard()
          Retrieves the card object.
 String getName()
          Gets the name of this session.
 Atr open()
          Intializes the card access session without authenticating for update access
 void setName(String name)
          Sets the name of this session.
 void update(Card card)
          Updates the card with this card object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private String name
Constructor Detail

Session

public Session()
Method Detail

open

public Atr open()
         throws CardException
Intializes the card access session without authenticating for update access

Throws:
CardException

getCard

public Card getCard()
             throws UnknownCardException
Retrieves the card object. Not implemented.

Returns:
a Card object
Throws:
UnknownCardException

update

public void update(Card card)
            throws CardException
Updates the card with this card object. Not implemented.

Parameters:
card - The card object to be updated with
Throws:
CardException

commit

public void commit()
            throws CardException
Commits the changes to the card. Not implemented.

Throws:
CardException

close

public void close()
           throws CardException
Closes the session. Implementation is at the lower layers of the technology.

Throws:
CardException
See Also:
JaccalPCSCSession.close()

getName

public String getName()
Gets the name of this session. The name is a user defined identifier for a session.s

Returns:
The name of this session.

setName

public void setName(String name)
Sets the name of this session.

Parameters:
name - The name of this session.

execute

public CardResponse execute(Command command)
                     throws CardException
Directly sends APDU commands to the card. Implementation is at the lower layers of the technology.

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


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