public class FormAuthModule extends TomcatAuthModule
AUTH_HEADER_NAME, AUTHORIZATION_HEADER, cache, changeSessionIdOnAuthentication, context, DEFAULT_REALM_NAME, handler, REALM_NAME, realmName, sm
Constructor and Description |
---|
FormAuthModule(Context context) |
Modifier and Type | Method and Description |
---|---|
protected void |
forwardToErrorPage(Request request,
HttpServletResponse response)
Called to forward to the error page
|
protected void |
forwardToLoginPage(Request request,
HttpServletResponse response)
Called to forward to the login page
|
void |
initializeModule(MessagePolicy requestPolicy,
MessagePolicy responsePolicy,
CallbackHandler handler,
Map<String,String> options)
Every subclass must extend this method in order to be initialized.
|
protected boolean |
isMatchingSavedRequest(Request request)
Does this request match the saved one (so that it must be the redirect we
signaled after successful authentication?
|
protected boolean |
restoreRequest(Request request,
Session session)
Restore the original request from information stored in our session.
|
protected String |
savedRequestURL(Session session)
Return the request URI (with the corresponding query string, if any) from
the saved request so that we can redirect to it.
|
protected void |
saveRequest(Request request,
Session session)
Save the original request information into our session.
|
AuthStatus |
validateRequest(MessageInfo messageInfo,
Subject clientSubject,
Subject serviceSubject) |
cleanSubject, getPrincipal, getRealmName, getSupportedMessageTypes, handlePrincipalCallbacks, initialize, isMandatory, secureResponse
public FormAuthModule(Context context)
public void initializeModule(MessagePolicy requestPolicy, MessagePolicy responsePolicy, CallbackHandler handler, Map<String,String> options) throws AuthException
TomcatAuthModule
initializeModule
in class TomcatAuthModule
AuthException
public AuthStatus validateRequest(MessageInfo messageInfo, Subject clientSubject, Subject serviceSubject) throws AuthException
AuthException
protected void forwardToLoginPage(Request request, HttpServletResponse response) throws IOException
request
- Request we are processingresponse
- Response we are populatingIOException
- If the forward to the login page fails and the call
to HttpServletResponse.sendError(int, String)
throws
an IOException
protected void forwardToErrorPage(Request request, HttpServletResponse response) throws IOException
request
- Request we are processingresponse
- Response we are populating @throws IOException If the
forward to the error page fails and the call to
HttpServletResponse.sendError(int, String)
throws an
IOException
IOException
protected boolean isMatchingSavedRequest(Request request)
request
- The request to be verifiedprotected boolean restoreRequest(Request request, Session session) throws IOException
false
; otherwise, return true
.request
- The request to be restoredsession
- The session containing the saved informationIOException
protected void saveRequest(Request request, Session session) throws IOException
request
- The request to be savedsession
- The session to contain the saved informationIOException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.