org.sakaiproject.tool.gradebook.facades.sakai2impl
Class AuthnSakai2Impl

java.lang.Object
  extended byorg.sakaiproject.tool.gradebook.facades.sakai2impl.AuthnSakai2Impl
All Implemented Interfaces:
Authn

public class AuthnSakai2Impl
extends Object
implements Authn

Sakai2 implementation of the gradebook's Authn facade.

Author:
Josh Holtzman

Constructor Summary
AuthnSakai2Impl()
           
 
Method Summary
 String getUserUid()
           
 void setAuthnContext(Object whatToAuthn)
          In Sakai, the framework maintains its own ThreadLocal user context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthnSakai2Impl

public AuthnSakai2Impl()
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.
See Also:
Authn.getUserUid()

setAuthnContext

public void setAuthnContext(Object whatToAuthn)
In Sakai, the framework maintains its own ThreadLocal user context.

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.