|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hardtokenmgmt.admin.control.BaseHostStatusFetcher
org.hardtokenmgmt.admin.control.HTMFWSImpl
public class HTMFWSImpl
Implementation of several control interfaces targeted against HTMFWS.
| Field Summary |
|---|
| Fields inherited from interface org.hardtokenmgmt.admin.control.IAdminAuthorizer |
|---|
RESOURCE_CAACTICATION, RESOURCE_EDITADMINS, RESOURCE_HOSTSTATUS |
| Constructor Summary | |
|---|---|
HTMFWSImpl()
|
|
| Method Summary | |
|---|---|
CAInfoVO |
activateCA(java.lang.String hostname,
int id,
java.lang.String authCode)
Method used to activate a CA at a specific host. |
CAInfoVO |
deactivateCA(java.lang.String hostname,
int id)
Method used to deactivate a CA at a specific host. |
void |
editAdmin(AdminDataVO adminData)
Adds/edits the data of a given administrator. |
boolean |
existsAdministrator(AdminDataVO adminData)
Checks if an administrator already exists. |
java.util.List<AdminDataVO> |
getAdministrators(java.lang.String orgId)
Returns a list of administrators belonging to the given organization |
java.util.List<AdminGroupVO> |
getAvailableAdminGroups(java.lang.String orgId)
Returns the available administration groups for the given organization. |
OverallStatus |
getHostStatuses()
Method that should fetch the current HostInfoVO for all the configured hosts |
java.security.cert.X509CRL |
getLastCRL(int caId)
Method used to fetch the latest CRL of a given CA. |
java.util.List<OrganizationVO> |
getOrganisations()
|
boolean |
isAuthorizedToEdit(java.lang.String resource)
Checks if the current administrator is authorized to edit the given resource. |
boolean |
isAuthorizedToView(java.lang.String resource)
Checks if the current administrator is authorized to view the given resource. |
void |
removeAdministrator(AdminDataVO adminData)
Removes the administrator privileges from a user. |
| Methods inherited from class org.hardtokenmgmt.admin.control.BaseHostStatusFetcher |
|---|
isHostMonitored, setHostAsMonitored |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HTMFWSImpl()
| Method Detail |
|---|
public void editAdmin(AdminDataVO adminData)
throws java.io.IOException,
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception,
AdminDataException
IAdministratorPriviledgesManager
editAdmin in interface IAdministratorPriviledgesManageradminData - information about the administrator
and the administration groups he should belong to.
java.io.IOException - if communication problems occurred.
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception - if the administrator wasn't authorized
to perform the given operation.
AdminDataException - if the adminData parameter contained erroneous data.IAdministratorPriviledgesManager.editAdmin(org.hardtokenmgmt.admin.common.AdminDataVO)public OverallStatus getHostStatuses()
IHostStatusFetcher
getHostStatuses in interface IHostStatusFetcherIHostStatusFetcher.getHostStatuses()
public boolean existsAdministrator(AdminDataVO adminData)
throws java.io.IOException,
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception
IAdministratorPriviledgesManager
existsAdministrator in interface IAdministratorPriviledgesManageradminData - information about the administrator.
java.io.IOException - if communication problems occurred.
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception - if the administrator wasn't authorized
to perform the given operation.IAdministratorPriviledgesManager.existsAdministrator(org.hardtokenmgmt.admin.common.AdminDataVO)
public java.util.List<AdminDataVO> getAdministrators(java.lang.String orgId)
throws java.io.IOException,
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception
IAdministratorPriviledgesManager
getAdministrators in interface IAdministratorPriviledgesManagerorgId - the unique id of the organization
java.io.IOException - if communication problems occurred.
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception - if the administrator wasn't authorized
to perform the given operation.IAdministratorPriviledgesManager.getAdministrators(java.lang.String)
public java.util.List<AdminGroupVO> getAvailableAdminGroups(java.lang.String orgId)
throws java.io.IOException,
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception
IAdministratorPriviledgesManager
getAvailableAdminGroups in interface IAdministratorPriviledgesManagerorgId - the unique id of the organization
java.io.IOException - if communication problems occurred.
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception - if the administrator wasn't authorized
to perform the given operation.IAdministratorPriviledgesManager.getAvailableAdminGroups(java.lang.String)
public void removeAdministrator(AdminDataVO adminData)
throws java.io.IOException,
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception,
AdminDataException
IAdministratorPriviledgesManager
removeAdministrator in interface IAdministratorPriviledgesManageradminData - information about the administrator.
java.io.IOException - if communication problems occurred.
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception - if the administrator wasn't authorized
to perform the given operation.
AdminDataException - if the adminData parameter contained erroneous data.IAdministratorPriviledgesManager.removeAdministrator(org.hardtokenmgmt.admin.common.AdminDataVO)
public CAInfoVO activateCA(java.lang.String hostname,
int id,
java.lang.String authCode)
throws java.io.IOException,
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception
ICAManager
activateCA in interface ICAManagerhostname - of the host to containing the CAs to activate.id - the id of CA to activate.authCode - the authentication code used to activate.
java.io.IOException - if communication exception occurred.
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_ExceptionICAManager.activateCA(java.lang.String, int, java.lang.String)
public CAInfoVO deactivateCA(java.lang.String hostname,
int id)
throws java.io.IOException,
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception
ICAManager
deactivateCA in interface ICAManagerhostname - of the host to containing the CAs to activate.id - the id of CA to deactivate
java.io.IOException - if communication exception occurred.
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_ExceptionICAManager.deactivateCA(java.lang.String, int)
public java.util.List<OrganizationVO> getOrganisations()
throws java.io.IOException,
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception
getOrganisations in interface IOrganizationManagerjava.io.IOException - if communication exception occurred.
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception
public boolean isAuthorizedToEdit(java.lang.String resource)
throws java.io.IOException
IAdminAuthorizer
isAuthorizedToEdit in interface IAdminAuthorizerresource - one of RESOURCE_ parameters
java.io.IOException - if communication error occurs
public boolean isAuthorizedToView(java.lang.String resource)
throws java.io.IOException
IAdminAuthorizer
isAuthorizedToView in interface IAdminAuthorizerresource - one of RESOURCE_ parameters
java.io.IOException
public java.security.cert.X509CRL getLastCRL(int caId)
throws java.io.IOException,
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception
ICAManager
getLastCRL in interface ICAManagercaId - of CA to fetch CRL for.
java.io.IOException - if communication exception occurred.
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||