org.sakaiproject.tool.gradebook.facades.test
Class AuthnTestImpl

java.lang.Object
  extended byorg.sakaiproject.tool.gradebook.facades.test.AuthnTestImpl
All Implemented Interfaces:
Authn

public class AuthnTestImpl
extends Object
implements Authn

An in-memory stub implementation of Authn, used for testing.

Author:
Josh Holtzman

Constructor Summary
AuthnTestImpl()
           
 
Method Summary
 String getUserUid()
           
 void setAuthnContext(Object whatToAuthn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthnTestImpl

public AuthnTestImpl()
Method Detail

setAuthnContext

public void setAuthnContext(Object whatToAuthn)
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.

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.