org.jasig.portlet.calendar.credentials
Class RequestAttributeCredentialsExtractorImpl
java.lang.Object
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
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final org.apache.commons.logging.Log log
RequestAttributeCredentialsExtractorImpl
public RequestAttributeCredentialsExtractorImpl()
- Default constructor
RequestAttributeCredentialsExtractorImpl
public RequestAttributeCredentialsExtractorImpl(String passwordAttribute,
String usernameAttribute)
- Parameters:
passwordAttribute - usernameAttribute -
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.