| java.lang.Object dinamica.security.SecurityFilter
SecurityFilter | public class SecurityFilter implements Filter(Code) | | Servlet Filter to enforce Dinamica
server-side security. This module
checks/enforce authentication and autorization
over protected resources, requires special configuration
via filter parameters and the existence of a database schema
containing the tables defined by Dinamica framework for
the security system. It also assumes the existence of
a set of generic Actions used for security tasks (login, loginerror, etc).
This filter mantains API level compatibity with Servlet J2EE
security methods, like getUserName, isUserInRole, etc.
Creation date: 10/march/2004
Last Update: 10/march/2004
(c) 2003 Martin Cordova
This code is released under the LGPL license
author: Martin Cordova - dinamica@martincordova.com |
debug | void debug(String uri, String[] uriRoles, DinamicaUser user)(Code) | | Print debug information to stderr about resource access authorization
Parameters: uri - Action being checked for authorization Parameters: uriRoles - Autorized roles Parameters: user - Current authenticated user |
debug | void debug(String uri, DinamicaUser user)(Code) | | Print debug information to stderr about access to public (non-protected) resources
Parameters: uri - Action being checked for authorization Parameters: user - Current authenticated user |
debug | void debug(String uri, String msg)(Code) | | Print debug information to stderr about resource access
Parameters: uri - Action being checked for authorization Parameters: msg - Custom debug message |
destroy | public void destroy()(Code) | | |
loadProtectedResources | void loadProtectedResources() throws Throwable(Code) | | Load into cache the list of protected
resources and authorized roles for each resource
throws: Throwable - |
|
|