All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.certificate.PolicyId

java.lang.Object
   |
   +----semper.certificate.GeneralPolicyId
           |
           +----semper.certificate.PolicyId

public class PolicyId
extends GeneralPolicyId
implements Situation
PolicyID extends GeneralPolicyId and contains restrictions on the identity and the BA. If identity/peer is null no restriction is set, whereas if it is set only the particular value to which it is set may be applied.


Constructor Index

 o PolicyId()
Empty constructor - Serialiazable.
 o PolicyId(String, String)
Create a PolicyId.

Method Index

 o clone()
Making clone public
 o equals(Object)
Override equals as PolicyId is going to be used as a key in HashTable.
 o get(String)
Get the value of the field name
 o hashCode()
Override hashCode as PolicyId is going to be used as a key in HashTable.
 o initialise()
Initialise a PolicyId
 o refinePolicyId(PolicyId)
Refines the PolicyId according to the argument.

Constructors

 o PolicyId
 public PolicyId()
Empty constructor - Serialiazable.

 o PolicyId
 public PolicyId(String peer,
                 String ba)
Create a PolicyId.

Parameters:
peer - is the name of the peer
ba - is a String identifying the business application

Methods

 o initialise
 public void initialise()
Initialise a PolicyId

Overrides:
initialise in class GeneralPolicyId
 o get
 public String get(String fieldName)
Get the value of the field name

Parameters:
fieldName - the name of the field
Returns:
the value of the field name
Overrides:
get in class GeneralPolicyId
 o refinePolicyId
 protected void refinePolicyId(PolicyId arg) throws CertificateManException
Refines the PolicyId according to the argument. If the object contains null (peer and/or BA) the corresponding attribute is restricted according to the argument policy ID.

Parameters:
arg - is teh PolicyId to be used to restrict the given argument
Throws: CertificateManException
if the argument contradicts the PolicyId.
 o equals
 public boolean equals(Object obj)
Override equals as PolicyId is going to be used as a key in HashTable.

Parameters:
the - object to compare with
Returns:
true if the two objects are equal
Overrides:
equals in class GeneralPolicyId
 o hashCode
 public int hashCode()
Override hashCode as PolicyId is going to be used as a key in HashTable.

Returns:
the hashCode
Overrides:
hashCode in class GeneralPolicyId
 o clone
 public synchronized Object clone()
Making clone public

Returns:
a clone of myself
Overrides:
clone in class GeneralPolicyId

All Packages  Class Hierarchy  This Package  Previous  Next  Index