org.hardtokenmgmt.admin.control
Interface ICAManager

All Known Implementing Classes:
DummyImpl, HTMFWSImpl

public interface ICAManager

Interface that all CA activators should implement. Contains methods to activate and deactivate a CA. Current CA info is fetched using the HostStatusFetcher

Version:
$Id$
Author:
Philip Vendil 25 feb 2009

Method Summary
 CAInfoVO activateCA(java.lang.String hostname, int cAId, java.lang.String authCode)
          Method used to activate a CA at a specific host.
 CAInfoVO deactivateCA(java.lang.String hostname, int cAId)
          Method used to deactivate a CA at a specific host.
 java.security.cert.X509CRL getLastCRL(int caId)
          Method used to fetch the latest CRL of a given CA.
 

Method Detail

activateCA

CAInfoVO activateCA(java.lang.String hostname,
                    int cAId,
                    java.lang.String authCode)
                    throws java.io.IOException,
                           org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception
Method used to activate a CA at a specific host.

Parameters:
hostname - of the host to containing the CAs to activate.
cAId - the id of CA to activate.
authCode - the authentication code used to activate.
Returns:
a CAInfoVO containing information about the current status if this CA.
Throws:
java.io.IOException - if communication exception occurred.
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException - if the administrator haven't got privileges for activation of this CA.
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception

deactivateCA

CAInfoVO deactivateCA(java.lang.String hostname,
                      int cAId)
                      throws java.io.IOException,
                             org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception
Method used to deactivate a CA at a specific host.

Parameters:
hostname - of the host to containing the CAs to activate.
cAId - the id of CA to deactivate
Returns:
a CAInfoVO containing information about the current status if this CA.
Throws:
java.io.IOException - if communication exception occurred.
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException - if the administrator haven't got privileges for deactivation of this CA.
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception

getLastCRL

java.security.cert.X509CRL getLastCRL(int caId)
                                      throws java.io.IOException,
                                             org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception
Method used to fetch the latest CRL of a given CA.

Parameters:
caId - of CA to fetch CRL for.
Returns:
The latest CRL of the given CA or null, if no CRL have been generated yet.
Throws:
java.io.IOException - if communication exception occurred.
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException - if the administrator haven't got privileges for deactivation of this CA.
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception