All Packages Class Hierarchy This Package Previous Next Index
Class semper.certificate.CertificateRequirement
java.lang.Object
|
+----semper.certificate.CertificateRequirement
- public class CertificateRequirement
- extends Object
- implements Serializable, Cloneable
This class records the information which is necessary for a module for a specific CA.
It records the name of the module, the pseudonym requirements, the public key and the IP address
-
CertificateRequirement()
- Empty constructor.
-
CertificateRequirement(CAInformation, NameRequirement)
- Create a CertificateRequirement object
-
equals(Object)
- Override equals.
-
getCAInformation()
- Get the module recorded in this object.
-
getName()
- Get the name of the CA recorded for in this object.
-
getNameRequirement()
- Get the name requirements recorded for in this object.
-
hashCode()
- Override hashCode as PolicyId is going to be used as a key in HashTable.
-
satisfy(Certificate)
- Verifies if a given certificate satisfies the requirement.
CertificateRequirement
public CertificateRequirement()
- Empty constructor.
CertificateRequirement
public CertificateRequirement(CAInformation caInf,
NameRequirement nameRequirement)
- Create a CertificateRequirement object
- Parameters:
- caInf - identifies the CA.
- nameRequirement - describes the naming requirement for this CA.
getCAInformation
public CAInformation getCAInformation()
- Get the module recorded in this object.
- Returns:
- the module name of the CA
getNameRequirement
public NameRequirement getNameRequirement()
- Get the name requirements recorded for in this object.
- Returns:
- the recorded name requirments
getName
public String getName()
- Get the name of the CA recorded for in this object.
- Returns:
- the recorded CA name.
satisfy
public boolean satisfy(Certificate cert)
- Verifies if a given certificate satisfies the requirement.
- Parameters:
- cert - is the Certificate to be investigated
- Returns:
- true if the certificate matches the requirement
equals
public boolean equals(Object obj)
- Override equals.
- Parameters:
- the - object to compare with
- Returns:
- true if the two objects are equal
- Overrides:
- equals in class Object
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 Object
All Packages Class Hierarchy This Package Previous Next Index