Methods in com.netscape.cms.authorization that throw EAuthzAccessDenied |
AuthzToken |
BasicAclAuthz.authorize(IAuthToken authToken,
java.lang.String expression)
|
AuthzToken |
DirAclAuthz.authorize(IAuthToken authToken,
java.lang.String expression)
|
AuthzToken |
BasicAclAuthz.authorize(IAuthToken authToken,
java.lang.String resource,
java.lang.String operation)
check the authorization permission for the user associated with
authToken on operation
Example:
For example, if UsrGrpAdminServlet needs to authorize the caller
it would do be done in the following fashion:
try {
authzTok = mAuthz.authorize("DirACLBasedAuthz", authToken, RES_GROUP, "read");
} catch (EBaseException e) {
log(ILogger.LL_FAILURE, "authorize call: "+ e.toString());
}
|
AuthzToken |
DirAclAuthz.authorize(IAuthToken authToken,
java.lang.String resource,
java.lang.String operation)
check the authorization permission for the user associated with
authToken on operation
Example:
For example, if UsrGrpAdminServlet needs to authorize the caller
it would do be done in the following fashion:
try {
authzTok = mAuthz.authorize("DirAclAuthz", authToken, RES_GROUP, "read");
} catch (EBaseException e) {
log(ILogger.LL_FAILURE, "authorize call: "+ e.toString());
}
|