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 ([email protected])
-
CONFIG_ASK_ALWAYS
- Possible value of payment access control parameter
Always prompt the user for authorisation.
-
CONFIG_ASK_NEVER
- Possible value of payment access control parameter
Never prompt the user for authorisation.
-
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.
-
PaymentAccessControlStructure()
- Constructor without args.
-
isAllowed(PaymentTransactionRecord)
-
-
isAllowed(PaymentTransactionRecord, Amount, PaymentEntity, ServiceType)
- Check if the an operation is permitted on a purse.
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.
CONFIG_ASK_ALWAYS
public static final String CONFIG_ASK_ALWAYS
- Possible value of payment access control parameter
Always prompt the user for authorisation.
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
- this works only for well-behaved adapters, and
- this is just for convenience and not security (since without
a SEMPER-wide access control framework, even untrusted
applications can change the configuration.
PaymentAccessControlStructure
public PaymentAccessControlStructure()
- Constructor without args.
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
isAllowed
public boolean isAllowed(PaymentTransactionRecord trec)
All Packages Class Hierarchy This Package Previous Next Index