All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.payment.PaymentAccessControlStructure

java.lang.Object
   |
   +----semper.payment.PaymentAccessControlStructure

public class PaymentAccessControlStructure
extends Object
implements Serializable
Access control information for the payment manager

Version:
$Revision: 1.10 $ $Date: 1998/08/04 14:10:04 $
Author:
N. Asokan (aso@zurich.ibm.com)

Variable Index

 o CONFIG_ASK_ALWAYS
Possible value of payment access control parameter Always prompt the user for authorisation.
 o CONFIG_ASK_NEVER
Possible value of payment access control parameter Never prompt the user for authorisation.
 o CONFIG_VAR
Configuration parameter to control user authorisation Note that this is just for convenience and not security (since without a SEMPER-wide access control framework, even untrusted applications can change the configuration.

Constructor Index

 o PaymentAccessControlStructure()
Constructor without args.

Method Index

 o isAllowed(PaymentTransactionRecord)
 o isAllowed(PaymentTransactionRecord, Amount, PaymentEntity, ServiceType)
Check if the an operation is permitted on a purse.

Variables

 o CONFIG_VAR
 public static final String CONFIG_VAR
Configuration parameter to control user authorisation Note that this is just for convenience and not security (since without a SEMPER-wide access control framework, even untrusted applications can change the configuration.

 o CONFIG_ASK_ALWAYS
 public static final String CONFIG_ASK_ALWAYS
Possible value of payment access control parameter Always prompt the user for authorisation.

 o CONFIG_ASK_NEVER
 public static final String CONFIG_ASK_NEVER
Possible value of payment access control parameter Never prompt the user for authorisation. An application or the commerce layer can set this value to (hopefully) prevent the adapter from prompting the user again. Note that

Constructors

 o PaymentAccessControlStructure
 public PaymentAccessControlStructure()
Constructor without args.

Methods

 o isAllowed
 public boolean isAllowed(PaymentTransactionRecord trec,
                          Amount amount,
                          PaymentEntity peer,
                          ServiceType service)
Check if the an operation is permitted on a purse. Eventually, this method will be used for access control. For now, this is just a placeholder.

Parameters:
trec - a handle to the transaction record
amount - amount of the proposed transfer
peer - peer of the proposed transfer
service - type of the proposed transfer
Returns:
true/false
 o isAllowed
 public boolean isAllowed(PaymentTransactionRecord trec)

All Packages  Class Hierarchy  This Package  Previous  Next  Index