Class semper.payment.PaymentEntity
All Packages Class Hierarchy This Package Previous Next Index
Class semper.payment.PaymentEntity
java.lang.Object
|
+----semper.payment.PaymentEntity
- public class PaymentEntity
- extends Object
- implements Streamable
Identifier for a payment system entity.
Payment System Entities are those entities at the "end points" of a
payment transactions. At the greatest resolution, they will be
specific purses belonging to a specific user. But we need ways of
representing lower levels of resolution. For example, a payer
needs to identify only the address of the payee and not necessarily
a specific purse of the payee.
We use this class to identify a payment system entity at various
levels of granularity:
- identity of a user
- identity of user and a type of payment system
- identity of a user and a specific purse belonging to her
Eventually, this can be a subclass of a SEMPER wide "Entity" class.
This object should have enough information to identify a particular
SEMPER user.
- Version:
- $Revision: 1.6 $ $Date: 1996/08/19 18:21:22 $
- Author:
- N. Asokan ([email protected])
-
PAYMENT_SYSTEM_NAME
- Flag value that indicates that the name passed to the constructor is
a payment system name.
-
PURSE_NAME
- Flag value that indicates that the name passed to the constructor is
a purse name.
-
PaymentEntity()
-
-
PaymentEntity(String, ComPointAddress)
- Construct a PaymentEntity object with username and
ComPointAddress as parameters
-
PaymentEntity(String, String, int)
- Construct a PaymentEntity object with username and
pursename/payment-system-name as parameters.
-
getComPointAddress()
- Retrieve the ComPointAddress (can be null -- so check for it)
-
getUserName()
- Retrieve the user name
-
myStreamSize()
- Implementing the Streamable interface
-
readObject(StreamInputInterface)
- Implementing the Streamable interface
-
setComPointAddress(ComPointAddress)
- Set the ComPointAddress
-
setUserName(String)
- Set the name of the entity.
-
writeObject(StreamOutputInterface)
- Implementing the Streamable interface
PURSE_NAME
public final static int PURSE_NAME
- Flag value that indicates that the name passed to the constructor is
a purse name.
PAYMENT_SYSTEM_NAME
public final static int PAYMENT_SYSTEM_NAME
- Flag value that indicates that the name passed to the constructor is
a payment system name.
PaymentEntity
public PaymentEntity(String username,
String name,
int flag) throws PaymentServiceException
- Construct a PaymentEntity object with username and
pursename/payment-system-name as parameters. When someone creates
PaymentEntity object with this constructor, there can be two
situations:
- they already know the purse (in which case the payment
name is redundant
- they know the payment system name but not the purse name
This is why these two cases are merged together in a single
constructor. (@@ This form of constructor o be deprecated
- Parameters:
- username - name of user
- name - distinguished name of purse or payment system
- name_type - flag indicating if "name" refers to a purse
payment system
- Throws: PaymentServiceException
- if an invalid
is given
PaymentEntity
public PaymentEntity(String username,
ComPointAddress com_point_address)
- Construct a PaymentEntity object with username and
ComPointAddress as parameters
- Parameters:
- username - name of user
- com_point_address - ComPointAddress of the remote
entity (can be payment manager or payment instrument)
- See Also:
- ComPointAddress
PaymentEntity
public PaymentEntity()
setUserName
public synchronized void setUserName(String user)
- Set the name of the entity.
- Parameters:
- pursename - name of the entity
getUserName
public String getUserName()
- Retrieve the user name
- Returns:
- user name
getComPointAddress
public ComPointAddress getComPointAddress()
- Retrieve the ComPointAddress (can be null -- so check for it)
- Returns:
- ComPointAddress
setComPointAddress
public void setComPointAddress(ComPointAddress new_address)
- Set the ComPointAddress
- Parameters:
- new_address - new ComPointAddress
- Returns:
- nothing
writeObject
public void writeObject(StreamOutputInterface s) throws StreamIOException
- Implementing the Streamable interface
- Throws: StreamIOException
- as usual
readObject
public void readObject(StreamInputInterface s) throws StreamIOException
- Implementing the Streamable interface
- Throws: StreamIOException
- as usual
myStreamSize
public int myStreamSize() throws StreamIOException
- Implementing the Streamable interface
All Packages Class Hierarchy This Package Previous Next Index