|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SecureFilter
SecureFilter extends Filter by protecting the filter with an access controller.
| Method Summary | |
|---|---|
boolean |
checkPermission(Permission permission,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Checks whether or not the specified request has the specified permission. |
boolean |
checkPermission(String resource,
int mask,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Checks whether or not the specified request has a permission to access the masked actions of the specified resource. |
boolean |
checkPermission(String resource,
String actions,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Checks whether or not the specified request has a permission to access the named actions of the specified resource. |
| Methods inherited from interface org.norther.tammi.core.security.AccessController |
|---|
addAllowedPermission, addDeniedPermission, allowedPermissions, allowedRoleSet, checkPermission, checkPermission, checkPermission, clearAllowedPermissions, clearDeniedPermissions, deniedPermissions, deniedRoleSet, getPermissibleRoles, getPermissibleRoles, getPermissibleRoles, isProtected, removeAllowedPermissions, removeDeniedPermissions, setAllowedPermissions, setDeniedPermissions |
| Methods inherited from interface javax.servlet.Filter |
|---|
destroy, doFilter, init |
| Method Detail |
|---|
boolean checkPermission(String resource,
String actions,
ServletRequest request,
ServletResponse response,
FilterChain chain)
resource - the name of the resource to check.actions - the name(s) of actions to access.request - the authenticated request.response - the corresponding response.chain - the active filter chain.
SecurityException - if the access control list is invalid.
boolean checkPermission(String resource,
int mask,
ServletRequest request,
ServletResponse response,
FilterChain chain)
resource - the name of the resource to check.mask - a mask of actions to access.request - the authenticated request.response - the corresponding response.chain - the active filter chain.
SecurityException - if the access control list is invalid.
boolean checkPermission(Permission permission,
ServletRequest request,
ServletResponse response,
FilterChain chain)
If the access controller is not protected by any permissions, true is returned.
permission - the permission to be checked for.request - the authenticated request.response - the corresponding response.chain - the active filter chain.
SecurityException - if the access control list is invalid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||