All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.certificate.CertBag

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

public class CertBag
extends Object

Constructor Index

 o CertBag(String)
Retrieves the certbag with the given name from archive.

Method Index

 o addToPolicy(CertificateId, Situation)
Adds a Certificate to a given policy.
 o getCertIds(Situation)
Returns a Vector of CertificateId objects for the given situation
 o getCerts(Situation)
Returns a Vector of Certificate objects for the given situation
 o getPolicy(Situation)
Returns a Vector of CertificateId objects for the given situation
 o getSituations(CertificateId)
Returns a Vector of Situation objects for the given CertificateId
 o removeFromCerificate(CertificateId, Situation)
Removes a policy from a given certificate.
 o removeFromPolicy(CertificateId, Situation)
Removes a Certificate from a given policy.
 o satisfyCertificate(CertificateId, CertificateRequirement)
If a certificate is installed matching the given CertificateRrequirement object this certificate is retrieved and returned.
 o selectCertificates(Situation, Vector)
Select all certificates, which the user has installed for the given situation (policy) matching the requirements.
 o selectCertificates(Situation, Vector, String)
Select all certificates, which the user has installed for the given situation (policy) matching the requirements.

Constructors

 o CertBag
 public CertBag(String name)
Retrieves the certbag with the given name from archive.

Parameters:
name - is the unique name of the bag

Methods

 o addToPolicy
 public void addToPolicy(CertificateId certId,
                         Situation situation) throws CertificateManException
Adds a Certificate to a given policy.

Parameters:
certId - identifies the certificate
situation - identifies the policy to whih the certificate should be added.
Throws: CertificateManException
if the caller does not have a certificate corresponding to certId.
 o removeFromPolicy
 public void removeFromPolicy(CertificateId certId,
                              Situation situation) throws CertificateManException
Removes a Certificate from a given policy. If situation is null the certificate is removed from all policies where it is recorded.

Parameters:
certId - identifies the certificate
situation - identifies the policy from which the certificate should be removed.
 o removeFromCerificate
 public void removeFromCerificate(CertificateId certId,
                                  Situation situation) throws CertificateManException
Removes a policy from a given certificate. If certificate is null the policy is removed from all certificates where it is recorded.

Parameters:
certId - identifies the certificate
situation - identifies the policy from which the certificate should be removed.
 o selectCertificates
 public Vector selectCertificates(Situation situation,
                                  Vector acceptPolicy,
                                  String userName)
Select all certificates, which the user has installed for the given situation (policy) matching the requirements.

Parameters:
situation - identifies the policy for which certificates should be chosen
userName - indicates the name which the user wants to use (NULL menas that there are no restrictions)
acceptPolicy - describes requirements on the certificastes to be chosen
Returns:
Vector of Certificate objects matching the given requirements.
 o selectCertificates
 public Vector selectCertificates(Situation situation,
                                  Vector acceptPolicy)
Select all certificates, which the user has installed for the given situation (policy) matching the requirements.

Parameters:
situation - identifies the policy for which certificates should be chosen
acceptPolicy - describes requirements on the certificastes to be chosen
Returns:
Vector of Certificate objects matching the given requirements.
 o getPolicy
 public Vector getPolicy(Situation situation)
Returns a Vector of CertificateId objects for the given situation

Parameters:
situation - identifies the policy to which the certificate should be added.
Returns:
Vector of CertificateId objects corresponding to the given policy.
 o getCertIds
 public Enumeration getCertIds(Situation situation)
Returns a Vector of CertificateId objects for the given situation

Parameters:
situation - identifies the policy to which the certificates should be retrieved (if situation is null all registered CertificateIds are returned)
Returns:
Enumeration of CertificateId objects corresponding to the given policy.
 o getCerts
 public Vector getCerts(Situation situation)
Returns a Vector of Certificate objects for the given situation

Parameters:
situation - identifies the policy to which the certificates should be retrieved (if situation is null all registered Certificates are returned)
Returns:
Vector of Certificate objects corresponding to the given policy.
 o getSituations
 public Enumeration getSituations(CertificateId certId)
Returns a Vector of Situation objects for the given CertificateId

Parameters:
certId - identifies the certificate for which the policies should be retrieved (if certid is null, all registered Situations are returned)
Returns:
Enumeration of Situation objects corresponding to the given certificate.
 o satisfyCertificate
 public Certificate satisfyCertificate(CertificateId certId,
                                       CertificateRequirement certRequirement)
If a certificate is installed matching the given CertificateRrequirement object this certificate is retrieved and returned.

Parameters:
certId - identifies the certificate to be investigated
certRequirement - describes the requirements on the certificate
Returns:
a certificate matching certRequirment (null if none)

All Packages  Class Hierarchy  This Package  Previous  Next  Index