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
-
ANONYMOUS_DEAL
- Identifier for the anonymous service profile.
-
CONFIDENTIAL
- Service confidentiality mode.
-
CONFIDENTIAL_DEAL
- Identifier for the confidential service profile.
-
MY_AUTHENTICITY
- Client identification and authentication mode.
-
MY_SECA
- This indicates whether the SECA applies to the client
-
NORMAL_DEAL
- Identifier for the normal service profile.
-
PAYMENT_RECEIPT
- This indicates whether the payer (normally the client) should receive
a receipt-of-payment from the payee (normally the server).
-
PEER_AUTHENTICITY
- Server identification and authentication mode.
-
PEER_SECA
- This indicates whether the SECA applies to the server
-
STATEMENT_RECEIPT
- This indicates whether the statement transaction initiator should
receive a receipt-of-statement from the respondent.
-
DealQuality()
- Default constructor.
-
DealQuality(int)
- Initialises the deal service quality settings to a predefined
setting.
-
checkCompatibility(ServiceQuality)
- Compares two sets of service quality attributes for compatibility.
-
clone()
- This method produces a distinct copy of the DealQuality
object.
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.
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.
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.
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).
STATEMENT_RECEIPT
public static final int STATEMENT_RECEIPT
- This indicates whether the statement transaction initiator should
receive a receipt-of-statement from the respondent.
MY_SECA
public static final int MY_SECA
- This indicates whether the SECA applies to the client
PEER_SECA
public static final int PEER_SECA
- This indicates whether the SECA applies to the server
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.
NORMAL_DEAL
public static final int NORMAL_DEAL
- Identifier for the normal service profile. This deal quality
profile enables client and server authentication.
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.
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.
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.
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
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