com.licel.jcardsim.samples.RMIDemo
Class PurseImpl
java.lang.Object
javacard.framework.service.CardRemoteObject
com.licel.jcardsim.samples.RMIDemo.PurseImpl
- All Implemented Interfaces:
- Purse, Remote
public class PurseImpl
- extends CardRemoteObject
- implements Purse
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PurseImpl
public PurseImpl()
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