org.acegisecurity.providers.cas.proxy
Class NamedCasProxyDecider

java.lang.Object
  extended by org.acegisecurity.providers.cas.proxy.NamedCasProxyDecider
All Implemented Interfaces:
CasProxyDecider, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware

public class NamedCasProxyDecider
extends Object
implements CasProxyDecider, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware

Accepts proxied requests if the closest proxy is named in the validProxies list.

Also accepts the request if there was no proxy (ie the user directly authenticated against this service).


Field Summary
protected  org.springframework.context.support.MessageSourceAccessor messages
           
 
Constructor Summary
NamedCasProxyDecider()
           
 
Method Summary
 void afterPropertiesSet()
           
 void confirmProxyListTrusted(List proxyList)
          Decides whether the proxy list is trusted.
 List getValidProxies()
           
 void setMessageSource(org.springframework.context.MessageSource messageSource)
           
 void setValidProxies(List validProxies)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messages

protected org.springframework.context.support.MessageSourceAccessor messages
Constructor Detail

NamedCasProxyDecider

public NamedCasProxyDecider()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

confirmProxyListTrusted

public void confirmProxyListTrusted(List proxyList)
                             throws ProxyUntrustedException
Description copied from interface: CasProxyDecider
Decides whether the proxy list is trusted.

Must throw any ProxyUntrustedException if the proxy list is untrusted.

Specified by:
confirmProxyListTrusted in interface CasProxyDecider
Parameters:
proxyList - the list of proxies to be checked.
Throws:
ProxyUntrustedException - DOCUMENT ME!

getValidProxies

public List getValidProxies()

setMessageSource

public void setMessageSource(org.springframework.context.MessageSource messageSource)
Specified by:
setMessageSource in interface org.springframework.context.MessageSourceAware

setValidProxies

public void setValidProxies(List validProxies)


Copyright © 2004-2011 Interface21, Inc. All Rights Reserved.