org.jasig.portlet.calendar.credentials
Class RequestAttributeCredentialsExtractorImpl

java.lang.Object
  extended by org.jasig.portlet.calendar.credentials.RequestAttributeCredentialsExtractorImpl
All Implemented Interfaces:
ICredentialsExtractor

public class RequestAttributeCredentialsExtractorImpl
extends 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

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

Field Detail

log

protected final org.apache.commons.logging.Log log
Constructor Detail

RequestAttributeCredentialsExtractorImpl

public RequestAttributeCredentialsExtractorImpl()
Default constructor


RequestAttributeCredentialsExtractorImpl

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

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(String usernameAttribute)

setPasswordAttribute

public void setPasswordAttribute(String passwordAttribute)


Copyright © 2012 Jasig. All Rights Reserved.