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.
-
PolicyId()
- Empty constructor - Serialiazable.
-
PolicyId(String, String)
- Create a PolicyId.
-
clone()
- Making clone public
-
equals(Object)
- Override equals as PolicyId is going to be used as a key in HashTable.
-
get(String)
- Get the value of the field name
-
hashCode()
- Override hashCode as PolicyId is going to be used as a key in HashTable.
-
initialise()
- Initialise a PolicyId
-
refinePolicyId(PolicyId)
- Refines the PolicyId according to the argument.
PolicyId
public PolicyId()
- Empty constructor - Serialiazable.
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
initialise
public void initialise()
- Initialise a PolicyId
- Overrides:
- initialise in class GeneralPolicyId
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
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.
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
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
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