All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.certificate.CAManagement

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

public class CAManagement
extends Object
implements MenuLaunchable
This class implements semper.certificate.CAManagement in order to allow the user handling the Certificate Authorities he trusts, as well as the modules they support.

Version:
$Revision: 1.12 $ $Date: 1998/08/24 08:51:08 $
Author:
Maria Gatziani ([email protected])

Constructor Index

 o CAManagement(AcceptPolicy, Vector, ModuleInformation)
Create the CAManagement object corresponding to the AcceptPolicy, the modules that are registered and these that are initialised.

Method Index

 o addCA(TinguinSession)
Method for adding a trusted CA.
 o addModules(TinguinSession, int, Vector)
Add a new module to the specific CA.
 o getNewPolicy(TinguinSession, boolean, int, Vector, int, String)
Changes an already stored policy or adds a new one to the selected CA.
 o launch()
Implements the MenuLaunchable interface.
 o manageCAs(TinguinSession)
Interacts with the user via a TINGUIN session.
 o policyList(TinguinSession)
Method for displaying all the policies.
 o removeCA(TinguinSession, int, Vector)
Removes a CA from the archive.
 o removeModules(TinguinSession, int, Vector)
Remove a module from the specific CA.
 o removePolicy(TinguinSession, Situation, int, Vector)
Removes an already stored policy of the selected CA.
 o viewCAs(TinguinSession)
Method for showing the trusted CAs.
 o viewDetails(TinguinSession, int, Vector)
Shows detailed information about the selected CA by listing all the modules it supports.
 o viewFingerprint(TinguinSession, int, Vector)
Displays the fingerprint of the CA 's public key.
 o viewPolicy(TinguinSession, int, Vector)
Displays the policy for the selected CA.
 o viewPolicyCAs(int, TinguinSession)
Lists all the CAs that can be used with the selected policy.

Constructors

 o CAManagement
 public CAManagement(AcceptPolicy acceptPolicy,
                     Vector registeredModules,
                     ModuleInformation initialisedModules)
Create the CAManagement object corresponding to the AcceptPolicy, the modules that are registered and these that are initialised.

Parameters:
acceptPolicy - is the user 's AcceptPolicy.
registeredModules - is the Vector that holds the modules that have been registered.
initialisedModules - is the information about the initialised modules.

Methods

 o launch
 public void launch()
Implements the MenuLaunchable interface.

 o manageCAs
 public void manageCAs(TinguinSession display)
Interacts with the user via a TINGUIN session. The user can select between browsing the CAs, the policies or adding a new CA.

Parameters:
display - is the Tinguin Session for this application
 o viewCAs
 public void viewCAs(TinguinSession display)
Method for showing the trusted CAs.

Parameters:
display - is the session created for the Certificate Authority Management.
 o policyList
 public void policyList(TinguinSession display)
Method for displaying all the policies.

Parameters:
display - is the session created for the Certificate Authority Management.
 o viewPolicyCAs
 public void viewPolicyCAs(int target,
                           TinguinSession display)
Lists all the CAs that can be used with the selected policy.

Parameters:
target - identifies the policy that the user has selected.
display - is the session created for the Certificate Authority Management.
 o addCA
 public static void addCA(TinguinSession display)
Method for adding a trusted CA. To add the CA, the module that it supports should be installed.

Parameters:
dispaly - is the display for interacting with the user through the TINGUIN.
 o viewDetails
 public void viewDetails(TinguinSession display,
                         int target,
                         Vector cas)
Shows detailed information about the selected CA by listing all the modules it supports.

Parameters:
display - is the session created for the Certificate Authority Management.
target - identifies the CA that the user has selected.
cas - Vector of CAs names.
 o viewPolicy
 public void viewPolicy(TinguinSession display,
                        int target,
                        Vector cas)
Displays the policy for the selected CA.

Parameters:
display - is the session created for the Certificate Authority Management.
target - identifies the CA that the user has selected.
cas - Vector of CAs names.
 o getNewPolicy
 public void getNewPolicy(TinguinSession display,
                          boolean change,
                          int cn,
                          Vector cas,
                          int target,
                          String s)
Changes an already stored policy or adds a new one to the selected CA.

Parameters:
display - is the session created for the Certificate Authority Management.
change - if it is true then a policy will be changed, otherwise a new one will be added.
cn - identifies the selected policy.
cas - Vector of CA names.
target - identifies the selected CA.
s - is the string that should be displayed on the window (in case a policy is changed or added).
 o removePolicy
 public boolean removePolicy(TinguinSession display,
                             Situation policyId,
                             int target,
                             Vector cas)
Removes an already stored policy of the selected CA.

Parameters:
display - is the session created for the Certificate Authority Management.
policyId - identifies the selected policy.
target - identifies the selected CA.
cas - Vector of CA names.
Returns:
true if the policy is removed, false otherwise.
 o removeCA
 public void removeCA(TinguinSession display,
                      int target,
                      Vector cas)
Removes a CA from the archive.

Parameters:
display - is the session created for the Certificate Authority Management.
target - identifies the selected CA.
cas - Vector of CA names.
 o viewFingerprint
 public void viewFingerprint(TinguinSession display,
                             int target,
                             Vector cas) throws CertificateManException
Displays the fingerprint of the CA 's public key.

Parameters:
display - is the session created for the Certificate Authority Management.
target - indicates the CA for which the fingerprint will be displayed.
Throws: CertificateManException,
if for some reason, the fingerprint could not be displayed.
 o addModules
 public void addModules(TinguinSession display,
                        int target,
                        Vector cas)
Add a new module to the specific CA. The module can be added only if it is already installed and accessible to the Certificate Manager.

Parameters:
display - is the session created for the Certificate Authority Management.
target - indicates the CA for which the fingerprint will be displayed.
cas - Vector of CA names.
 o removeModules
 public void removeModules(TinguinSession display,
                           int target,
                           Vector cas)
Remove a module from the specific CA. If it is the last one the user has 2 options: to quit removal or to remove the CA as well.

Parameters:
display - is the session created for the Certificate Authority Management.
target - indicates the CA for which the fingerprint will be displayed.
cas - Vector of CA names.

All Packages  Class Hierarchy  This Package  Previous  Next  Index