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
-
CAInformation()
- Empty constructor - Serializable.
-
CAInformation(String, String)
- Create a CAInformation object.
-
CAInformation(String, String, CryptoKeyInfo, String)
- Create a CAInformation.
-
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.
-
equals(Object)
- Override equals.
-
getAddress()
- Get the address of the CA.
-
getModule()
- Get the module recorded in this object.
-
getName()
- Get the name of the CA recorded in this object.
-
getPublicKey()
- Get the trusted public key of the CA.
-
hashCode()
- Override hashCode as PolicyId is going to be used as a key in HashTable.
-
satisfy(Certificate)
- Verifies if a given certificate matches the name and module in this CAInformation object..
-
setAddress(String)
- Set the address of the CA.
-
setPublicKey(CryptoKeyInfo)
- Set the public key of the CA.
CAInformation
public CAInformation()
- Empty constructor - Serializable.
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.
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)
setAddress
public void setAddress(String caAddress)
- Set the address of the CA.
- Parameters:
- caAddress - is the Internet address of the CA
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
getAddress
public String getAddress()
- Get the address of the CA.
- Returns:
- the Internet address of the ca
getPublicKey
public CryptoKeyInfo getPublicKey()
- Get the trusted public key of the CA.
- Returns:
- the trusted public key.
getModule
public String getModule()
- Get the module recorded in this object.
- Returns:
- the module name of the CA
getName
public String getName()
- Get the name of the CA recorded in this object.
- Returns:
- name of the CA
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
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
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