|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AccessControlRule
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 |
|---|
void initialize(Config config)
throws ConfigException
config - a Config object that provides access to configuration
parameters and a runtime Context.
ConfigExceptionString getId()
void setId(String id)
id - a unique identifier for the AccessControlRule.String getDescription()
void setDescription(String desc)
desc - a textual description of this rule.
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.void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||