edu.yale.its.tp.portlets.calendar.credentials
Class RequestAttributeCredentialsExtractorImpl

java.lang.Object
  extended by edu.yale.its.tp.portlets.calendar.credentials.RequestAttributeCredentialsExtractorImpl
All Implemented Interfaces:
ICredentialsExtractor

public class RequestAttributeCredentialsExtractorImpl
extends java.lang.Object
implements ICredentialsExtractor

This ICredentialsExtractor implementation can retrieve the necessary username and password from named attributes within the user's HttpSession or PortletSession.

Version:
$Header: RequestAttributeCredentialsExtractorImpl.java Exp $
Author:
Nicholas Blair, nblair@doit.wisc.edu

Constructor Summary
RequestAttributeCredentialsExtractorImpl()
          Default constructor
RequestAttributeCredentialsExtractorImpl(java.lang.String passwordAttribute, java.lang.String usernameAttribute)
           
 
Method Summary
 org.apache.commons.httpclient.Credentials getCredentials(javax.servlet.http.HttpServletRequest request)
          Implementations may return null.
 org.apache.commons.httpclient.Credentials getCredentials(javax.portlet.PortletRequest request)
          Implementations may return null.
 void setPasswordAttribute(java.lang.String passwordAttribute)
           
 void setUsernameAttribute(java.lang.String usernameAttribute)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestAttributeCredentialsExtractorImpl

public RequestAttributeCredentialsExtractorImpl()
Default constructor


RequestAttributeCredentialsExtractorImpl

public RequestAttributeCredentialsExtractorImpl(java.lang.String passwordAttribute,
                                                java.lang.String usernameAttribute)
Parameters:
passwordAttribute -
usernameAttribute -
Method Detail

getCredentials

public org.apache.commons.httpclient.Credentials getCredentials(javax.servlet.http.HttpServletRequest request)
Description copied from interface: ICredentialsExtractor
Implementations may return null.

Specified by:
getCredentials in interface ICredentialsExtractor
Returns:
the corresponding Credentials, or null

getCredentials

public org.apache.commons.httpclient.Credentials getCredentials(javax.portlet.PortletRequest request)
Description copied from interface: ICredentialsExtractor
Implementations may return null.

Specified by:
getCredentials in interface ICredentialsExtractor
Returns:
the corresponding Credentials, or null

setUsernameAttribute

public void setUsernameAttribute(java.lang.String usernameAttribute)

setPasswordAttribute

public void setPasswordAttribute(java.lang.String passwordAttribute)


Copyright © 2009 Jasig. All Rights Reserved.