org.sakaiproject.tool.gradebook.facades.standalone
Class AuthnStandaloneImpl

java.lang.Object
  extended byorg.sakaiproject.tool.gradebook.facades.standalone.AuthnStandaloneImpl
All Implemented Interfaces:
Authn

public class AuthnStandaloneImpl
extends Object
implements Authn

An implementation of the Authn facade to support demos and UI tests.


Constructor Summary
AuthnStandaloneImpl()
           
 
Method Summary
 String getUserUid()
           
 void setAuthnContext(Object whatToAuthn)
          This is usually redundant, since all the necessary information is available through the FacesContext object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthnStandaloneImpl

public AuthnStandaloneImpl()
Method Detail

getUserUid

public String getUserUid()
Specified by:
getUserUid in interface Authn
Returns:
an ID uniquely identifying the currently authenticated user in a site, or null if the user has not been authenticated.

setAuthnContext

public void setAuthnContext(Object whatToAuthn)
This is usually redundant, since all the necessary information is available through the FacesContext object. Unfortunately, servlets and filters might call this service before the Faces context is fully initialized.

Specified by:
setAuthnContext in interface Authn
Parameters:
whatToAuthn - the javax.servlet.http.HttpServletRequest or javax.portlet.PortletRequest for which authentication should be checked. Since they don't share an interface, a generic object is passed.