public interface IAuthHandler extends IHandler
IComponent
for the IAuthManager
Modifier and Type | Method and Description |
---|---|
boolean |
handle(HttpServletRequest request)
Each
IAuthHandler attempts to retrieve authorization information
from the user. |
getConfigElem, getHandlerBean, getName, getPerfToken, initialize, postInitialize, shutdown
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init
boolean handle(HttpServletRequest request) throws FrameworkException
IAuthHandler
attempts to retrieve authorization information
from the user. This can come from a variety of places, and is designed to be
completely pluggable. AuthManager
is asked to retrieve AuthInfo
, then
after generating a default AuthInfo
object, the registered IAuthHandler
s
will be delegated to. IAuthHandler
exit it's function as soon as possible
if no authorization information is avaliable.AuthInfo
object for modification,
call AuthInfo.getAuthInfo(javax.servlet.http.HttpSession)
IAuthHandler
s will be delegated to in the way they were listed in the auth.xml file.request
- the HttpServletRequest to construct the AuthInfo
fromtrue
if this request was 'handled', false
otherwise.FrameworkException