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])
-
CAManagement(AcceptPolicy, Vector, ModuleInformation)
- Create the CAManagement object corresponding to the AcceptPolicy, the modules that are registered and these that are initialised.
-
addCA(TinguinSession)
- Method for adding a trusted CA.
-
addModules(TinguinSession, int, Vector)
- Add a new module to the specific CA.
-
getNewPolicy(TinguinSession, boolean, int, Vector, int, String)
- Changes an already stored policy or adds a new one to the selected CA.
-
launch()
- Implements the MenuLaunchable interface.
-
manageCAs(TinguinSession)
- Interacts with the user via a TINGUIN session.
-
policyList(TinguinSession)
- Method for displaying all the policies.
-
removeCA(TinguinSession, int, Vector)
- Removes a CA from the archive.
-
removeModules(TinguinSession, int, Vector)
- Remove a module from the specific CA.
-
removePolicy(TinguinSession, Situation, int, Vector)
- Removes an already stored policy of the selected CA.
-
viewCAs(TinguinSession)
- Method for showing the trusted CAs.
-
viewDetails(TinguinSession, int, Vector)
- Shows detailed information about the selected CA by listing all the modules it supports.
-
viewFingerprint(TinguinSession, int, Vector)
- Displays the fingerprint of the CA 's public key.
-
viewPolicy(TinguinSession, int, Vector)
- Displays the policy for the selected CA.
-
viewPolicyCAs(int, TinguinSession)
- Lists all the CAs that can be used with the selected policy.
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.
launch
public void launch()
- Implements the MenuLaunchable interface.
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
viewCAs
public void viewCAs(TinguinSession display)
- Method for showing the trusted CAs.
- Parameters:
- display - is the session created for the Certificate Authority Management.
policyList
public void policyList(TinguinSession display)
- Method for displaying all the policies.
- Parameters:
- display - is the session created for the Certificate Authority Management.
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.
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.
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.
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.
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).
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.
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.
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.
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.
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