org.eclipse.higgins.saml2idp.server.util
Class ExtractUtil

java.lang.Object
  extended byorg.eclipse.higgins.saml2idp.server.util.ExtractUtil

public class ExtractUtil
extends Object


Method Summary
static String getUser(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Extracts a username from a request.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getUser

public static String getUser(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)
Extracts a username from a request. If one is found, no login forms are displayed, and the user is considered to be authenticated already. This is done by checking for parameters, headers and cookies with a certain name provided in the configuration.

Parameters:
request - The current HttpServletRequest object.
response - The current HttpServletResponse object.
Returns:
The username that was extracted from the request.