| java.lang.Object org.dspace.app.webui.util.Authenticate
Authenticate | public class Authenticate (Code) | | Methods for authenticating the user. This is DSpace platform code, as opposed
to the site-specific authentication code, that resides in implementations of
the org.dspace.eperson.AuthenticationMethod interface.
author: Robert Tansley version: $Revision: 2168 $ |
getRealRequest | public static HttpServletRequest getRealRequest(HttpServletRequest request)(Code) | | Return the request that the system should be dealing with, given the
request that the browse just sent. If the incoming request is from a
redirect resulting from successful authentication, a request object
corresponding to the original request that prompted authentication is
returned. Otherwise, the request passed in is returned.
Parameters: request - the incoming HTTP request the HTTP request the DSpace system should deal with |
loggedIn | public static void loggedIn(Context context, HttpServletRequest request, EPerson eperson)(Code) | | Store information about the current user in the request and context
Parameters: context - DSpace context Parameters: request - HTTP request Parameters: eperson - the eperson logged in |
loggedOut | public static void loggedOut(Context context, HttpServletRequest request)(Code) | | Log the user out
Parameters: context - DSpace context Parameters: request - HTTP request |
resumeInterruptedRequest | public static void resumeInterruptedRequest(HttpServletRequest request, HttpServletResponse response) throws IOException(Code) | | Resume a previously interrupted request. This is invoked when a user has
been successfully authenticated. The request which led to authentication
will be resumed.
Parameters: request - current HTTP request Parameters: response - HTTP response |
startAuthentication | public static boolean startAuthentication(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException(Code) | | Start the authentication process. This packages up the request that led
to authentication being required, and then invokes the site-specific
authentication method.
If it returns true, the user was authenticated without any
redirection (e.g. by an X.509 certificate or other implicit method) so
the process that called this can continue and send its own response.
A "false" result means this method has sent its own redirect.
Parameters: context - current DSpace context Parameters: request - current HTTP request - the one that prompted authentication Parameters: response - current HTTP response true if authentication is already finished (implicit method) |
|
|