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


Constructor Index

 o CertificateRequirement()
Empty constructor.
 o CertificateRequirement(CAInformation, NameRequirement)
Create a CertificateRequirement object

Method Index

 o equals(Object)
Override equals.
 o getCAInformation()
Get the module recorded in this object.
 o getName()
Get the name of the CA recorded for in this object.
 o getNameRequirement()
Get the name requirements recorded for in this object.
 o hashCode()
Override hashCode as PolicyId is going to be used as a key in HashTable.
 o satisfy(Certificate)
Verifies if a given certificate satisfies the requirement.

Constructors

 o CertificateRequirement
 public CertificateRequirement()
Empty constructor.

 o CertificateRequirement
 public CertificateRequirement(CAInformation caInf,
                               NameRequirement nameRequirement)
Create a CertificateRequirement object

Parameters:
caInf - identifies the CA.
nameRequirement - describes the naming requirement for this CA.

Methods

 o getCAInformation
 public CAInformation getCAInformation()
Get the module recorded in this object.

Returns:
the module name of the CA
 o getNameRequirement
 public NameRequirement getNameRequirement()
Get the name requirements recorded for in this object.

Returns:
the recorded name requirments
 o getName
 public String getName()
Get the name of the CA recorded for in this object.

Returns:
the recorded CA name.
 o 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
 o 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
 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 Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index