All Packages Class Hierarchy This Package Previous Next Index
Class semper.certificate.TrustDomain
java.lang.Object
|
+----semper.certificate.TrustDomain
- public class TrustDomain
- extends Object
-
TrustDomain(String)
- Constructs the TrustDomain for a given user by reading all
information about the user from archive.
-
add(String, CAInformation)
- Adds a CA to the TrustDomain.
-
add(String, String, String)
- Adds a CA to the TrustDomain.
-
addKey(String, String, CryptoKeyInfo)
- Method for recording a public key for a trusted CA.
-
getAddress(String, String)
- Method for getting the address of a trusted CA.
-
getAllCAs()
- used to retrieve a list of all trusted CAs.
-
getCAInformation(String, String)
- Getting CAInformation corresponding to a given CA and module.
-
getCAs(String)
- Returning a Vector of CAs supporting a given module.
-
getInformation(String)
- Returning an enumeration of CAInformation objects recorded for a given CA.
-
getKey(String, String)
- Method for getting a public key recorded for a trusted CA.
-
getModule(String)
- Returning a Vector of names of modules supported by a given CA.
-
isTrusted(String, String)
- used to ask if a (CA,module) pair is trusted.
-
removeModule(String, String)
- Removing the module in case it should no longer be considered initialised.
TrustDomain
public TrustDomain(String userId)
- Constructs the TrustDomain for a given user by reading all
information about the user from archive.
- Parameters:
- userId - is the user login name for SEMPER
isTrusted
public boolean isTrusted(String moduleName,
String caName)
- used to ask if a (CA,module) pair is trusted.
- Parameters:
- moduleName - is the name of the module
- caName - is the (public)name of the CA is the new CAEntity to be added
- Returns:
- true if the given pir is trusted.
add
public void add(String caName,
CAInformation information)
- Adds a CA to the TrustDomain.
If a CAInformation with the same module name is already recorded for the
same nothing is done.
- Parameters:
- caName - is the (public)name of the CA is the new CAEntity to be added
- information - is the information to be recorded for the CA.
- See Also:
- removeModule
add
public void add(String caName,
String moduleName,
String caAddress)
- Adds a CA to the TrustDomain.
- Parameters:
- caName - is the (public)name of the CA is the new CAEntity to be added
- moduleName - is the name of the module (if null simply ignored)
- caAddress - is the IP address of the CA (if null simply ignored)
getAllCAs
public Enumeration getAllCAs()
- used to retrieve a list of all trusted CAs.
- Returns:
- Enumeration of Strings with the names of the CAs that have been added.
getModule
public Vector getModule(String caName)
- Returning a Vector of names of modules supported by a given CA.
- Parameters:
- caName - is the (public) name of the CA is the new CAEntity to be added
- Returns:
- a Vector of String objects with the names of the recorded modules.
getInformation
public Enumeration getInformation(String caName)
- Returning an enumeration of CAInformation objects recorded for a given CA.
- Parameters:
- caName - is the (public) name of the CA is the new CAEntity to be added
- Returns:
- enumeration of CAInformation objects recorded for a given CA
getCAInformation
public CAInformation getCAInformation(String moduleName,
String caName)
- Getting CAInformation corresponding to a given CA and module.
- Parameters:
- moduleName - is the name of the module
- caName - is the name of the CA
- Returns:
- CAInformation object corresponding to the CA and module (null if no information
is recorded)
getCAs
public Vector getCAs(String moduleName)
- Returning a Vector of CAs supporting a given module.
- Parameters:
- moduleName - is the name of the module
- Returns:
- Vector of strings containing the names of the CAs supporting the modules.
removeModule
public void removeModule(String moduleName,
String caName)
- Removing the module in case it should no longer be considered initialised.
- Parameters:
- moduleName - is the name of the module. If modulename is null all
modules for the CA are removed
- caName - is the (public) name of the CA
- Throws: CertificatemanException
- if the module could not be removed (insufficient
information).
addKey
public void addKey(String moduleName,
String caName,
CryptoKeyInfo pubKey)
- Method for recording a public key for a trusted CA. An existing key is simply overwritten!
- Parameters:
- moduleName - is the name of the module
- caName - is the name of the CA
- pubKey - is the key to be registered with the CA
getKey
public CryptoKeyInfo getKey(String moduleName,
String caName)
- Method for getting a public key recorded for a trusted CA.
- Parameters:
- moduleName - is the name of the module
- caName - is the name of the CA
- Returns:
- the key be registered with the CA (null if no key)
getAddress
public String getAddress(String moduleName,
String caName)
- Method for getting the address of a trusted CA.
- Parameters:
- moduleName - is the name of the module
- caName - is the name of the CA
- Returns:
- the address of the CA (possibly null)
All Packages Class Hierarchy This Package Previous Next Index