com.licel.jcardsim.samples.RMIDemo
Class PurseImpl

java.lang.Object
  extended by javacard.framework.service.CardRemoteObject
      extended by com.licel.jcardsim.samples.RMIDemo.PurseImpl
All Implemented Interfaces:
Purse, Remote

public class PurseImpl
extends CardRemoteObject
implements Purse


Field Summary
 
Fields inherited from interface com.licel.jcardsim.samples.RMIDemo.Purse
BAD_ARGUMENT, MAX_AMOUNT, OVERFLOW, UNDERFLOW
 
Constructor Summary
PurseImpl()
           
 
Method Summary
 void credit(short m)
           
 void debit(short m)
           
 byte[] getAccountNumber()
           
 short getBalance()
           
 void setAccountNumber(byte[] number)
           
 
Methods inherited from class javacard.framework.service.CardRemoteObject
export, unexport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PurseImpl

public PurseImpl()
Method Detail

setAccountNumber

public void setAccountNumber(byte[] number)
                      throws RemoteException,
                             UserException
Specified by:
setAccountNumber in interface Purse
Throws:
RemoteException
UserException

credit

public void credit(short m)
            throws RemoteException,
                   UserException
Specified by:
credit in interface Purse
Throws:
RemoteException
UserException

debit

public void debit(short m)
           throws RemoteException,
                  UserException
Specified by:
debit in interface Purse
Throws:
RemoteException
UserException

getAccountNumber

public byte[] getAccountNumber()
                        throws RemoteException
Specified by:
getAccountNumber in interface Purse
Throws:
RemoteException

getBalance

public short getBalance()
                 throws RemoteException
Specified by:
getBalance in interface Purse
Throws:
RemoteException