|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
AccessControlRule defines an interface for a rule that
implements access control logic. The rule is evaluated based on an
AccessControlRequest, AccessControlResponse, and any other parameters or logic
associated with the concrete rule implementation.
| Method Summary | |
void |
destroy()
Destroy the AccessControlRule. |
boolean |
evaluate(InternalAccessControlRequest accessRequest,
InternalAccessControlResponse accessResponse)
Evaluate the AccessControlRule. |
String |
getDescription()
Get a description of this AccessControlRule. |
String |
getId()
Get the identifier. |
void |
initialize(Config config)
Initialize the AccessControlRule. |
void |
setDescription(String desc)
Set a description of this AccessControlRule. |
void |
setId(String id)
Set the identifier. |
| Methods inherited from interface com.cafesoft.core.util.Debuggable |
setDebug |
| Method Detail |
public void initialize(Config config)
throws ConfigException
config - a Config object that provides access to configuration
parameters and a runtime Context.
ConfigExceptionpublic String getId()
public void setId(String id)
id - a unique identifier for the AccessControlRule.public String getDescription()
public void setDescription(String desc)
desc - a textual description of this rule.
public boolean evaluate(InternalAccessControlRequest accessRequest,
InternalAccessControlResponse accessResponse)
throws EvaluationException
accessRequest - the access request.accessResponse - the access response.
EvaluationException - if an error when attempting to
evaluate the rule. This condition may correspond to an
unanticipated system error or an antipated precondition to
evaluating the rule.public void destroy()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||