|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwinstone.auth.BaseAuthenticationHandler
public abstract class BaseAuthenticationHandler
Base class for managers of authentication within Winstone. This class also acts as a factory, loading the appropriate subclass for the requested auth type.
Field Summary | |
---|---|
static WinstoneResourceBundle |
AUTH_RESOURCES
|
protected SecurityConstraint[] |
constraints
|
protected AuthenticationRealm |
realm
|
protected java.lang.String |
realmName
|
Constructor Summary | |
---|---|
protected |
BaseAuthenticationHandler(org.w3c.dom.Node loginConfigNode,
java.util.List constraintNodes,
java.util.Set rolesAllowed,
AuthenticationRealm realm)
Factory method - this parses the web.xml nodes and builds the correct subclass for handling that auth type. |
Method Summary | |
---|---|
protected boolean |
doRoleCheck(HttpServletRequest request,
HttpServletResponse response,
java.lang.String pathRequested)
|
boolean |
processAuthentication(ServletRequest inRequest,
ServletResponse inResponse,
java.lang.String pathRequested)
Evaluates any authentication constraints, intercepting if auth is required. |
protected abstract void |
requestAuthentication(HttpServletRequest request,
HttpServletResponse response,
java.lang.String pathRequested)
The actual auth request implementation. |
protected void |
setNoCache(HttpServletResponse response)
|
protected abstract boolean |
validatePossibleAuthenticationResponse(HttpServletRequest request,
HttpServletResponse response,
java.lang.String pathRequested)
Handling the (possible) response |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SecurityConstraint[] constraints
protected AuthenticationRealm realm
protected java.lang.String realmName
public static final WinstoneResourceBundle AUTH_RESOURCES
Constructor Detail |
---|
protected BaseAuthenticationHandler(org.w3c.dom.Node loginConfigNode, java.util.List constraintNodes, java.util.Set rolesAllowed, AuthenticationRealm realm)
Method Detail |
---|
public boolean processAuthentication(ServletRequest inRequest, ServletResponse inResponse, java.lang.String pathRequested) throws java.io.IOException, ServletException
processAuthentication
in interface AuthenticationHandler
java.io.IOException
ServletException
protected boolean doRoleCheck(HttpServletRequest request, HttpServletResponse response, java.lang.String pathRequested) throws java.io.IOException, ServletException
java.io.IOException
ServletException
protected void setNoCache(HttpServletResponse response)
protected abstract void requestAuthentication(HttpServletRequest request, HttpServletResponse response, java.lang.String pathRequested) throws java.io.IOException, ServletException
java.io.IOException
ServletException
protected abstract boolean validatePossibleAuthenticationResponse(HttpServletRequest request, HttpServletResponse response, java.lang.String pathRequested) throws ServletException, java.io.IOException
ServletException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |