example.purse
Interface Purse

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
PurseImpl, PurseImpl_Stub

public interface Purse
extends java.rmi.Remote


Field Summary
static byte ROLE_ANYBODY
           
static byte ROLE_BANK
           
static byte ROLE_MERCHANT
           
static byte ROLE_OWNER
           
 
Method Summary
 byte[] concatenate(short[] p1, byte[] p2, byte[] p3, byte[] p4)
           
 void decreaseBalance(short amount)
           
 short getBalance()
           
 void increaseBalance(short amount)
           
 

Field Detail

ROLE_ANYBODY

public static final byte ROLE_ANYBODY
See Also:
Constant Field Values

ROLE_MERCHANT

public static final byte ROLE_MERCHANT
See Also:
Constant Field Values

ROLE_BANK

public static final byte ROLE_BANK
See Also:
Constant Field Values

ROLE_OWNER

public static final byte ROLE_OWNER
See Also:
Constant Field Values
Method Detail

getBalance

public short getBalance()
                 throws java.rmi.RemoteException
java.rmi.RemoteException

increaseBalance

public void increaseBalance(short amount)
                     throws java.rmi.RemoteException,
                            javacard.framework.UserException
java.rmi.RemoteException
javacard.framework.UserException

decreaseBalance

public void decreaseBalance(short amount)
                     throws java.rmi.RemoteException,
                            javacard.framework.UserException
java.rmi.RemoteException
javacard.framework.UserException

concatenate

public byte[] concatenate(short[] p1,
                          byte[] p2,
                          byte[] p3,
                          byte[] p4)
                   throws java.rmi.RemoteException
java.rmi.RemoteException