|
||||||||||
| 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.DummyImpl
public class DummyImpl
DummyImplementation of a IHostInfoFetcher that retrieves information about the local host.
| Field Summary | |
|---|---|
static java.lang.String |
cert1String
|
static java.lang.String |
cert2String
|
static java.lang.String |
dummyCRLData
|
| Fields inherited from interface org.hardtokenmgmt.admin.control.IAdminAuthorizer |
|---|
RESOURCE_CAACTICATION, RESOURCE_EDITADMINS, RESOURCE_HOSTSTATUS |
| Constructor Summary | |
|---|---|
DummyImpl()
|
|
| 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 fetches information about the local host |
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 |
| Field Detail |
|---|
public static java.lang.String cert1String
public static java.lang.String cert2String
public static java.lang.String dummyCRLData
| Constructor Detail |
|---|
public DummyImpl()
| Method Detail |
|---|
public OverallStatus getHostStatuses()
getHostStatuses in interface IHostStatusFetcherIHostStatusFetcher.getHostStatuses()
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_Exception
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_Exceptionpublic java.util.List<OrganizationVO> getOrganisations()
getOrganisations in interface IOrganizationManagerpublic void editAdmin(AdminDataVO adminData)
IAdministratorPriviledgesManager
editAdmin in interface IAdministratorPriviledgesManageradminData - information about the administrator
and the administration groups he should belong to.public java.util.List<AdminDataVO> getAdministrators(java.lang.String orgId)
IAdministratorPriviledgesManager
getAdministrators in interface IAdministratorPriviledgesManagerorgId - the unique id of the organization
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.public void removeAdministrator(AdminDataVO adminData)
IAdministratorPriviledgesManager
removeAdministrator in interface IAdministratorPriviledgesManageradminData - information about the administrator.
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.public boolean isAuthorizedToEdit(java.lang.String resource)
IAdminAuthorizer
isAuthorizedToEdit in interface IAdminAuthorizerresource - one of RESOURCE_ parameters
public boolean isAuthorizedToView(java.lang.String resource)
IAdminAuthorizer
isAuthorizedToView in interface IAdminAuthorizerresource - one of RESOURCE_ parameters
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 | |||||||||