org.hardtokenmgmt.admin.control
Interface IAdminAuthorizer

All Known Implementing Classes:
DummyImpl, HTMFWSImpl

public interface IAdminAuthorizer

Interface used to simplify authrization of administration console.

Version:
$Id$
Author:
Philip Vendil 24 mar 2009

Field Summary
static java.lang.String RESOURCE_CAACTICATION
           
static java.lang.String RESOURCE_EDITADMINS
           
static java.lang.String RESOURCE_HOSTSTATUS
           
 
Method Summary
 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.
 

Field Detail

RESOURCE_HOSTSTATUS

static final java.lang.String RESOURCE_HOSTSTATUS
See Also:
Constant Field Values

RESOURCE_CAACTICATION

static final java.lang.String RESOURCE_CAACTICATION
See Also:
Constant Field Values

RESOURCE_EDITADMINS

static final java.lang.String RESOURCE_EDITADMINS
See Also:
Constant Field Values
Method Detail

isAuthorizedToView

boolean isAuthorizedToView(java.lang.String resource)
                           throws java.io.IOException
Checks if the current administrator is authorized to view the given resource.

Parameters:
resource - one of RESOURCE_ parameters
Returns:
true if authorized to view given resource
Throws:
java.io.IOException

isAuthorizedToEdit

boolean isAuthorizedToEdit(java.lang.String resource)
                           throws java.io.IOException
Checks if the current administrator is authorized to edit the given resource.

Parameters:
resource - one of RESOURCE_ parameters
Returns:
true if authorized to edit given resource
Throws:
java.io.IOException - if communication error occurs