org.jasig.portlet.emailpreview.service.auth
Class CachedPasswordAuthenticationServiceImpl

java.lang.Object
  extended by org.jasig.portlet.emailpreview.service.auth.CachedPasswordAuthenticationServiceImpl
All Implemented Interfaces:
IAuthenticationService

@Component(value="cachedPasswordAuthenticationService")
public class CachedPasswordAuthenticationServiceImpl
extends Object
implements IAuthenticationService

Version:
$Revision$
Author:
Jen Bourey, jbourey@unicon.net

Field Summary
static String PASSWORD_ATTRIBUTE
           
static String USERNAME_ATTRIBUTE
           
 
Constructor Summary
CachedPasswordAuthenticationServiceImpl()
           
 
Method Summary
 List<ConfigurationParameter> getAdminConfigurationParameters()
           
 javax.mail.Authenticator getAuthenticator(javax.portlet.PortletRequest req, MailStoreConfiguration config)
           
 Map<String,ConfigurationParameter> getConfigurationParametersMap()
           
 String getKey()
          Return the unique key for this authentication service.
 String getMailAccountName(javax.portlet.PortletRequest request, MailStoreConfiguration config)
           
 List<ConfigurationParameter> getUserConfigurationParameters()
           
 boolean isConfigured(javax.portlet.PortletRequest req, MailStoreConfiguration config)
          True if the specified parameters contain enough information to build a valid Authenticator if they were passed to the IAuthenticationService.getAuthenticator(PortletRequest, MailStoreConfiguration) method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USERNAME_ATTRIBUTE

public static final String USERNAME_ATTRIBUTE
See Also:
Constant Field Values

PASSWORD_ATTRIBUTE

public static final String PASSWORD_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

CachedPasswordAuthenticationServiceImpl

public CachedPasswordAuthenticationServiceImpl()
Method Detail

getConfigurationParametersMap

public Map<String,ConfigurationParameter> getConfigurationParametersMap()
Specified by:
getConfigurationParametersMap in interface IAuthenticationService

isConfigured

public boolean isConfigured(javax.portlet.PortletRequest req,
                            MailStoreConfiguration config)
Description copied from interface: IAuthenticationService
True if the specified parameters contain enough information to build a valid Authenticator if they were passed to the IAuthenticationService.getAuthenticator(PortletRequest, MailStoreConfiguration) method.

Specified by:
isConfigured in interface IAuthenticationService
Returns:

getAuthenticator

public javax.mail.Authenticator getAuthenticator(javax.portlet.PortletRequest req,
                                                 MailStoreConfiguration config)
Specified by:
getAuthenticator in interface IAuthenticationService
Returns:

getMailAccountName

public String getMailAccountName(javax.portlet.PortletRequest request,
                                 MailStoreConfiguration config)
Specified by:
getMailAccountName in interface IAuthenticationService

getKey

public String getKey()
Description copied from interface: IAuthenticationService
Return the unique key for this authentication service. This key will be used to retrieve an authentication service instance from the registry.

Specified by:
getKey in interface IAuthenticationService
Returns:

getAdminConfigurationParameters

public List<ConfigurationParameter> getAdminConfigurationParameters()
Specified by:
getAdminConfigurationParameters in interface IAuthenticationService

getUserConfigurationParameters

public List<ConfigurationParameter> getUserConfigurationParameters()
Specified by:
getUserConfigurationParameters in interface IAuthenticationService


Copyright © 2012 Jasig. All Rights Reserved.