org.codehaus.plexus.security
Interface ResourceController

All Known Implementing Classes:
AllAccessResourceController, NoAccessResourceController

public interface ResourceController

Determines if entities are authorized to access specific resources.

Since:
Nov 21, 2002
Author:
Dan Diephouse

Field Summary
static java.lang.String ROLE
           
static java.lang.String SELECTOR_ROLE
           
 
Method Summary
 boolean isAuthorized(java.lang.Object entity, java.lang.Object resource)
          Check to see if the entity is authorized to access the resource.
 

Field Detail

ROLE

public static final java.lang.String ROLE

SELECTOR_ROLE

public static final java.lang.String SELECTOR_ROLE
Method Detail

isAuthorized

public boolean isAuthorized(java.lang.Object entity,
                            java.lang.Object resource)
Check to see if the entity is authorized to access the resource. The relation between the entity and resource is entirely up to the implementation.

Parameters:
entity -
resource -
Returns:
boolean