All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.certificate.CAInformation

java.lang.Object
   |
   +----semper.certificate.CAInformation

public class CAInformation
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 public key and the host name of the CA


Constructor Index

 o CAInformation()
Empty constructor - Serializable.
 o CAInformation(String, String)
Create a CAInformation object.
 o CAInformation(String, String, CryptoKeyInfo, String)
Create a CAInformation.

Method Index

 o clone()
Redefine clone so that anyone can make clones of us; this is useful in accessor methods of other classes that have an object of this class as an attribute.
 o equals(Object)
Override equals.
 o getAddress()
Get the address of the CA.
 o getModule()
Get the module recorded in this object.
 o getName()
Get the name of the CA recorded in this object.
 o getPublicKey()
Get the trusted public key of the CA.
 o hashCode()
Override hashCode as PolicyId is going to be used as a key in HashTable.
 o satisfy(Certificate)
Verifies if a given certificate matches the name and module in this CAInformation object..
 o setAddress(String)
Set the address of the CA.
 o setPublicKey(CryptoKeyInfo)
Set the public key of the CA.

Constructors

 o CAInformation
 public CAInformation()
Empty constructor - Serializable.

 o CAInformation
 public CAInformation(String ca,
                      String module)
Create a CAInformation object. The name of the CA should be unique for the CA. This is the name which will be shown to the user by the CertificateManager. The module name is included in order to allow a CA to support more modules (e.g., it is conceivable that a CA may issue X.509 as well as EDIFACT certificates).

Parameters:
ca - is the name of the CA.
module - is the name of a module supported by the CA.
 o CAInformation
 public CAInformation(String ca,
                      String module,
                      CryptoKeyInfo publicKey,
                      String caAddress)
Create a CAInformation. The name of the CA should be unique for the CA. This is the name which will be shown to the user by the CertificateManager. The module name is included in order to allow a CA to support more modules (e.g., it is conceivable that a CA may issue X.509 as well as EDIFACT certificates).

Parameters:
ca - is the name of the CA.
module - is the name of a module supported by the CA.
publicKey - is the trusted public key
caAddress - is the Internet ddress of the CA (as a String)

Methods

 o setAddress
 public void setAddress(String caAddress)
Set the address of the CA.

Parameters:
caAddress - is the Internet address of the CA
 o setPublicKey
 public void setPublicKey(CryptoKeyInfo publicKey)
Set the public key of the CA. This service should only be used vere carefully.

Parameters:
publicKey - is the new trusted public key of the CA
 o getAddress
 public String getAddress()
Get the address of the CA.

Returns:
the Internet address of the ca
 o getPublicKey
 public CryptoKeyInfo getPublicKey()
Get the trusted public key of the CA.

Returns:
the trusted public key.
 o getModule
 public String getModule()
Get the module recorded in this object.

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

Returns:
name of the CA
 o satisfy
 public boolean satisfy(Certificate cert)
Verifies if a given certificate matches the name and module in this CAInformation object..

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
 o clone
 public synchronized Object clone()
Redefine clone so that anyone can make clones of us; this is useful in accessor methods of other classes that have an object of this class as an attribute.

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index