All Packages Class Hierarchy This Package Previous Next Index
Class semper.payment.mandate.mandateModule
java.lang.Object
|
+----semper.payment.mandate.mandateModule
- public class mandateModule
- extends Object
Mandate Payment Module.
This module is the implementation of a e-cheque payment system. It
is an "account-based" system. There are two types of entities in
the system: the payer, and the payee. So far there are only
one type of transactions:
The protocol is of the request/response type. All protocol
messages have the same structure (of class mandateModuleMessage)
- Version:
- $Revision: 1.11 $ $Date: 1998/10/06 15:09:35 $
- Author:
- K. Lüders-Jensen ([email protected]), Bjarke Dahl Ebert ([email protected])
-
mandateModule()
-
-
get_bank_id(String, String)
-
-
get_DCid(String)
-
-
get_owner(String, String)
-
-
getAccountNo(String, String)
-
-
getCertificate(String, String)
-
-
getCurrency(String, String)
-
-
getNumberOfCheques(String, String)
-
-
issue_cheque(String, String, String, int, long, long, byte[], String, String)
-
-
mandateInit(ComPointAddress)
- Initialise/re-initialise the system.
-
mandatePay(mandatePurse, PaymentEntity, Amount, String)
- Send a payment.
-
mandateReceivePayment(mandatePurse, Amount, String, PaymentEntity)
- Receive a payment from anyone
-
passwd_check(String, String, String, String)
-
-
receive_cheque(String, String, byte[], String, String)
-
-
retrieveCheques(String, String)
-
-
set_passwd(String, String, String, String, String, String)
-
mandateModule
public mandateModule()
getNumberOfCheques
public static native int getNumberOfCheques(String id,
String DCfile) throws mandateModuleException
retrieveCheques
public static native byte[][] retrieveCheques(String id,
String DCfile) throws mandateModuleException
getCurrency
public static native int getCurrency(String id,
String DCfile) throws mandateModuleException
getAccountNo
public static native String getAccountNo(String id,
String DCfile) throws mandateModuleException
getCertificate
public static native byte[] getCertificate(String id,
String DCfile) throws mandateModuleException
set_passwd
public static native void set_passwd(String id,
String DCfile,
String old_passwd1,
String old_passwd2,
String new_passwd1,
String new_passwd2) throws mandateModuleException
passwd_check
public static native boolean passwd_check(String id,
String DCfile,
String passwd1,
String passwd2) throws mandateModuleException
- Returns:
- true if passwords are correct
receive_cheque
public static native void receive_cheque(String id,
String DCfile,
byte chequeToken[],
String passwd1,
String passwd2) throws mandateModuleException
issue_cheque
public static native byte[] issue_cheque(String id,
String DCfile,
String payee,
int amount,
long valstart,
long valend,
byte certificate[],
String passwd1,
String passwd2) throws mandateModuleException
- Returns:
- byte[] containing bytes from cheque
get_DCid
public static native String get_DCid(String DCfile) throws mandateModuleException
get_owner
public static native String get_owner(String id,
String DCfile) throws mandateModuleException
get_bank_id
public static native String get_bank_id(String id,
String DCfile) throws mandateModuleException
mandateInit
public static ChannelServicePointThread mandateInit(ComPointAddress addr) throws mandateModuleException
- Initialise/re-initialise the system.
This method registers a port/protocol with the communication
manager so that incoming payment messages can be handled.
- Parameters:
- addr - ComPointAddress object indicating port and protocol
- Returns:
- a handle to the service point thread created
- Throws: mandateModuleException
- if the registration fails.
mandatePay
public static mandateEvidence mandatePay(mandatePurse purse,
PaymentEntity payee,
Amount amount,
String ext_ref) throws mandateModuleException
- Send a payment.
Sends a payment to the specified party.
- Parameters:
- payer_name - name by which we are to be known to the
payee (this need not be the same name that the bank
knows us by)
- payer_AC_number - our account number in the bank
- payee_name - name of the payee
- payee - address of the payee
- amount - value of payment
- purse - Purse refering to the DC that will issue the cheque
- ext_ref - external reference string to be passed on to
the other side
- Returns:
- mandateEvidence object containing results and status
- Throws: mandateModuleException
- on all sorts of errors
- See Also:
- mandateReceivePayment
mandateReceivePayment
public static mandateEvidence mandateReceivePayment(mandatePurse purse,
Amount amount,
String ext_ref,
PaymentEntity payer) throws mandateModuleException
- Receive a payment from anyone
- Parameters:
- purse - The purse that will receive the payment
- a_amount - value of payment (return value)
- ext_ref - external reference string passed on from
the other side
- Returns:
- mandateEvidence object containing results and status
- Throws: mandateModuleException
- on all sorts of errors
- See Also:
- mandatePay
All Packages Class Hierarchy This Package Previous Next Index