package org.owasp.appsensor.accesscontrol;

import org.owasp.appsensor.ClientApplication;
import org.owasp.appsensor.exceptions.NotAuthorizedException;

/**
 * This interface is meant to gate access to the different actions 
 * that can be performed to ensure a client has appropriate permissions.
 * 
 * @author John Melton (jtmelton@gmail.com) http://www.jtmelton.com/
 */
public interface AccessController {

	public boolean isAuthorized(ClientApplication clientApplication, Action action, Context context);
	
	public void assertAuthorized(ClientApplication clientApplication, Action action, Context context) throws NotAuthorizedException;
	
}

package org.owasp.appsensor.accesscontrol;

import org.owasp.appsensor.ClientApplication;
import org.owasp.appsensor.exceptions.NotAuthorizedException;

/**
 * This interface is meant to gate access to the different {@link Action} 
 * that can be performed to ensure a client has appropriate permissions.
 * 
 * @author John Melton (jtmelton@gmail.com) http://www.jtmelton.com/
 */
public interface AccessController {

	public boolean isAuthorized(ClientApplication clientApplication, Action action, Context context);
	
	public void assertAuthorized(ClientApplication clientApplication, Action action, Context context) throws NotAuthorizedException;
	
}

update javadoc