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
Method Summary |
boolean |
isAuthorized(java.lang.Object entity,
java.lang.Object resource)
Check to see if the entity is authorized to access the
resource. |
ROLE
public static final java.lang.String ROLE
SELECTOR_ROLE
public static final java.lang.String SELECTOR_ROLE
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
Copyright © 2001-2007 Codehaus. All Rights Reserved.