org.jasig.portlet.emailpreview.service.auth.cas
Class CasAuthenticationService

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

public class CasAuthenticationService
extends Object
implements IAuthenticationService


Field Summary
protected  String CAS_ASSERTION_KEY
           
protected  ICASProxyTicketService casTicketService
           
protected  String key
           
protected  String serviceUrl
           
 
Constructor Summary
CasAuthenticationService()
           
 
Method Summary
 List<ConfigurationParameter> getAdminConfigurationParameters()
           
 javax.mail.Authenticator getAuthenticator(javax.portlet.PortletRequest request, MailStoreConfiguration config)
           
protected  org.jasig.cas.client.validation.Assertion getCasAssertion(javax.portlet.PortletRequest request)
           
 Map<String,ConfigurationParameter> getConfigurationParametersMap()
           
 String getKey()
          Return the unique key for this authentication service.
 String getMailAccountName(javax.portlet.PortletRequest request, MailStoreConfiguration config)
           
protected  String getProxyPrincipalname(javax.portlet.PortletRequest request)
           
 List<ConfigurationParameter> getUserConfigurationParameters()
           
 boolean isConfigured(javax.portlet.PortletRequest request, 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.
 void setCasTicketService(ICASProxyTicketService casTicketService)
           
 void setKey(String key)
           
 void setServiceUrl(String serviceUrl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

protected String key

casTicketService

protected ICASProxyTicketService casTicketService

serviceUrl

protected String serviceUrl

CAS_ASSERTION_KEY

protected String CAS_ASSERTION_KEY
Constructor Detail

CasAuthenticationService

public CasAuthenticationService()
Method Detail

setCasTicketService

public void setCasTicketService(ICASProxyTicketService casTicketService)

setServiceUrl

public void setServiceUrl(String serviceUrl)

getProxyPrincipalname

protected String getProxyPrincipalname(javax.portlet.PortletRequest request)

getCasAssertion

protected org.jasig.cas.client.validation.Assertion getCasAssertion(javax.portlet.PortletRequest request)

getConfigurationParametersMap

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

isConfigured

public boolean isConfigured(javax.portlet.PortletRequest request,
                            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 request,
                                                 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:

setKey

public void setKey(String key)

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.