All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.commerce.DealQuality

java.lang.Object
   |
   +----semper.commerce.ServiceQuality
           |
           +----semper.commerce.DealQuality

public class DealQuality
extends ServiceQuality
implements Cloneable
This class encapsulates the set of quality attributes that will be applied to a deal. Additional transaction quality attributes may be applied to the individual transactions in this deal.

Many methods for manipulating the set of service quality attributes are defined by the base class ServiceQuality.

Version:
$Id: DealQuality.java,v 1.6 1998/08/24 11:35:33 semper Exp $
Author:
Rolf Michelsen, Stig Mj�lsnes

Variable Index

 o ANONYMOUS_DEAL
Identifier for the anonymous service profile.
 o CONFIDENTIAL
Service confidentiality mode.
 o CONFIDENTIAL_DEAL
Identifier for the confidential service profile.
 o MY_AUTHENTICITY
Client identification and authentication mode.
 o MY_SECA
This indicates whether the SECA applies to the client
 o NORMAL_DEAL
Identifier for the normal service profile.
 o PAYMENT_RECEIPT
This indicates whether the payer (normally the client) should receive a receipt-of-payment from the payee (normally the server).
 o PEER_AUTHENTICITY
Server identification and authentication mode.
 o PEER_SECA
This indicates whether the SECA applies to the server
 o STATEMENT_RECEIPT
This indicates whether the statement transaction initiator should receive a receipt-of-statement from the respondent.

Constructor Index

 o DealQuality()
Default constructor.
 o DealQuality(int)
Initialises the deal service quality settings to a predefined setting.

Method Index

 o checkCompatibility(ServiceQuality)
Compares two sets of service quality attributes for compatibility.
 o clone()
This method produces a distinct copy of the DealQuality object.

Variables

 o CONFIDENTIAL
 public static final int CONFIDENTIAL
Service confidentiality mode. This mode value indicates wheter the confidentiality of all messages exchanged in the deal must be ensured.

 o MY_AUTHENTICITY
 public static final int MY_AUTHENTICITY
Client identification and authentication mode. This mode value indicates whether the client will be identified and authenticated.

 o PEER_AUTHENTICITY
 public static final int PEER_AUTHENTICITY
Server identification and authentication mode. This mode value indicates whether the server will be identified and authenticated.

 o PAYMENT_RECEIPT
 public static final int PAYMENT_RECEIPT
This indicates whether the payer (normally the client) should receive a receipt-of-payment from the payee (normally the server).

 o STATEMENT_RECEIPT
 public static final int STATEMENT_RECEIPT
This indicates whether the statement transaction initiator should receive a receipt-of-statement from the respondent.

 o MY_SECA
 public static final int MY_SECA
This indicates whether the SECA applies to the client

 o PEER_SECA
 public static final int PEER_SECA
This indicates whether the SECA applies to the server

 o CONFIDENTIAL_DEAL
 public static final int CONFIDENTIAL_DEAL
Identifier for the confidential service profile. This deal quality profile enables the attributes for confidentiality and client and server authentication.

 o NORMAL_DEAL
 public static final int NORMAL_DEAL
Identifier for the normal service profile. This deal quality profile enables client and server authentication.

 o ANONYMOUS_DEAL
 public static final int ANONYMOUS_DEAL
Identifier for the anonymous service profile. This deal quality profile enables server authentication but disables client authentication.

Constructors

 o DealQuality
 public DealQuality()
Default constructor. This constructor will initialise a set of deal service quality attributes with all attributes set to the "don't care" state.

 o DealQuality
 public DealQuality(int profile)
Initialises the deal service quality settings to a predefined setting. This constructor can be used for initialisation of the deal service quality attributes to one of a number of predefined quality profiles.

Parameters:
profile - Quality profile identifier.

Methods

 o clone
 public Object clone() throws CloneNotSupportedException
This method produces a distinct copy of the DealQuality object. It returns a object that must be casted into a DealQuality object.

Returns:
The clone of the object.
Throws: CloneNotSupportedException
Thrown if the object cannot be cloned for some reason.
Overrides:
clone in class Object
 o checkCompatibility
 public boolean checkCompatibility(ServiceQuality qos)
Compares two sets of service quality attributes for compatibility. The sets are incompatible if the mode for any one attribute is enabled in one set and disabled in the other.

This method will always indicate incompatible sets of quality attributes if the parameter is not of type DealQuality.

Parameters:
qos - A set of service quality attributes.
Returns:
true if the two sets of service quality attributes are compatible.
Overrides:
checkCompatibility in class ServiceQuality

All Packages  Class Hierarchy  This Package  Previous  Next  Index