com.sun.javacard.samples.RMIDemo
Class Purse_Stub

java.lang.Object
  extended by javax.microedition.jcrmi.RemoteStub
      extended by com.sun.javacard.samples.RMIDemo.Purse_Stub
All Implemented Interfaces:
Purse, java.rmi.Remote

public final class Purse_Stub
extends javax.microedition.jcrmi.RemoteStub
implements Purse, java.rmi.Remote


Field Summary
 
Fields inherited from class javax.microedition.jcrmi.RemoteStub
ref
 
Fields inherited from interface com.sun.javacard.samples.RMIDemo.Purse
BAD_ARGUMENT, MAX_AMOUNT, OVERFLOW, UNDERFLOW
 
Constructor Summary
Purse_Stub()
           
 
Method Summary
 void credit(short param1)
           
 void debit(short param1)
           
 byte[] getAccountNumber()
           
 short getBalance()
           
 void setAccountNumber(byte[] param1)
           
 
Methods inherited from class javax.microedition.jcrmi.RemoteStub
equals, hashCode, setRef
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Purse_Stub

public Purse_Stub()
Method Detail

getAccountNumber

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

setAccountNumber

public void setAccountNumber(byte[] param1)
                      throws java.rmi.RemoteException,
                             javacard.framework.UserException
Specified by:
setAccountNumber in interface Purse
Throws:
java.rmi.RemoteException
javacard.framework.UserException

credit

public void credit(short param1)
            throws java.rmi.RemoteException,
                   javacard.framework.UserException
Specified by:
credit in interface Purse
Throws:
java.rmi.RemoteException
javacard.framework.UserException

debit

public void debit(short param1)
           throws java.rmi.RemoteException,
                  javacard.framework.UserException
Specified by:
debit in interface Purse
Throws:
java.rmi.RemoteException
javacard.framework.UserException

getBalance

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