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

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

public class CachedPasswordAuthenticationService
extends BaseCredentialsAuthenticationService

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

Field Summary
static String PASSWORD_ATTRIBUTE
           
static String USERNAME_ATTRIBUTE
           
 
Fields inherited from class org.jasig.portlet.emailpreview.service.auth.BaseCredentialsAuthenticationService
adminParameters, configParams, userParameters
 
Constructor Summary
CachedPasswordAuthenticationService()
           
 
Method Summary
 javax.mail.Authenticator getAuthenticator(javax.portlet.PortletRequest req, MailStoreConfiguration config)
           
 org.apache.http.auth.Credentials getCredentials(javax.portlet.PortletRequest req, MailStoreConfiguration config)
          Returns a credentials object.
 String getKey()
          Return the unique key for this authentication service.
 String getMailAccountName(javax.portlet.PortletRequest request, MailStoreConfiguration config)
           
 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 org.jasig.portlet.emailpreview.service.auth.BaseCredentialsAuthenticationService
createMailAccountName, createNTCredentials, getAdminConfigurationParameters, getConfigurationParametersMap, getUserConfigurationParameters, setAdminParameters, setConfigParams, setUserParameters
 
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

CachedPasswordAuthenticationService

public CachedPasswordAuthenticationService()
Method Detail

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.

Returns:

getAuthenticator

public javax.mail.Authenticator getAuthenticator(javax.portlet.PortletRequest req,
                                                 MailStoreConfiguration config)
Returns:

getCredentials

public org.apache.http.auth.Credentials getCredentials(javax.portlet.PortletRequest req,
                                                       MailStoreConfiguration config)
Description copied from interface: IAuthenticationService
Returns a credentials object. This is for Exchange integration.

Returns:

getMailAccountName

public String getMailAccountName(javax.portlet.PortletRequest request,
                                 MailStoreConfiguration config)

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.

Returns:


Copyright © 2013 Jasig. All Rights Reserved.