All Packages Class Hierarchy This Package Previous Next Index
Class semper.certificate.AcceptPolicy
java.lang.Object
|
+----semper.certificate.AcceptPolicy
- public class AcceptPolicy
- extends Object
-
AcceptPolicy(String)
- Constructs the AcceptPolicy for a given user by reading all
information about the user from archive.
-
addRequirement(CertificateRequirement, Situation)
- Adds a CertificateRequirement to a given Situation
-
getCertificateRequirement(Situation)
- Returns a Vector of CertificateRequirement objects for the given Situation
-
getGeneralPolicy(Situation)
- Getting the CertificateRequirement objects asociated with a given policy.
-
getGeneralPolicyIds(CertificateRequirement)
- Returns a Vector of Situation objects for the given CertificateRequirement
-
removeFromPolicy(CertificateRequirement, Situation)
- Removes an CertificateRequirement object from a given policy.
AcceptPolicy
public AcceptPolicy(String userId)
- Constructs the AcceptPolicy for a given user by reading all
information about the user from archive.
- Parameters:
- userId - is the user login name for SEMPER
addRequirement
public void addRequirement(CertificateRequirement certificateRequirement,
Situation generalPolicyId) throws CertificateManException
- Adds a CertificateRequirement to a given Situation
- Parameters:
- certificateRequirement - defines the options which are acceptable
- generalPolicyId - identifies the policy to which the certificate should be added.
- Throws: CertificateManException
- if the caller does not have a certificate corresponding to certId.
removeFromPolicy
public void removeFromPolicy(CertificateRequirement certificateRequirement,
Situation generalPolicyId) throws CertificateManException
- Removes an CertificateRequirement object from a given policy. If generalPolicyId is null the information
is removed from all policies where it is recorded.
- Parameters:
- certificateRequirement - defines the options which are acceptable
- generalPolicyId - identifies the policy to which the certificate should be added.
getGeneralPolicy
public Vector getGeneralPolicy(Situation generalPolicyId)
- Getting the CertificateRequirement objects asociated with a given policy.
- Parameters:
- generalPolicyId - identifies the policy.
- Returns:
- Vector of CertificateRequirement objects corresponding to the given policy.
getGeneralPolicyIds
public Enumeration getGeneralPolicyIds(CertificateRequirement certificateRequirement)
- Returns a Vector of Situation objects for the given CertificateRequirement
- Parameters:
- certificateRequirement - identifies the requirements for which the policies should be retrieved
(if certificateRequirement is null, all registered generalPolicyIds are returned)
- Returns:
- Enumeration of Situation objects corresponding to the given certificate requirement.
getCertificateRequirement
public Enumeration getCertificateRequirement(Situation generalPolicyId)
- Returns a Vector of CertificateRequirement objects for the given Situation
- Parameters:
- generalPolicyId - identifies the policy to which the certificate requirement should be retrieved
(if generalPolicyId is null all registered Certificate Requirements are returned)
- Returns:
- Enumeration of CertificateRequirement objects corresponding to the given policy.
All Packages Class Hierarchy This Package Previous Next Index