All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.codehaus.plexus.security.ResourceController Maven / Gradle / Ivy

There is a newer version: 1.0-alpha-3
Show newest version
package org.codehaus.plexus.security;

/**
 * Determines if entities are authorized to access specific resources.
 * 
 * @author Dan Diephouse
 * @since Nov 21, 2002
 */
public interface ResourceController
{
    public final static String ROLE = ResourceController.class.getName();

    public final static String SELECTOR_ROLE = ROLE + "Selector";
   
    /**
     * 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.
     * 
     * @param entity
     * @param resource
     * @return boolean
     */
    public boolean isAuthorized( Object entity, Object resource );
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy