java.lang.Object
org.acegisecurity.providers.cas.proxy.NamedCasProxyDecider
- All Implemented Interfaces:
- org.acegisecurity.providers.cas.CasProxyDecider, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware
- public class NamedCasProxyDecider
- extends java.lang.Object
- implements org.acegisecurity.providers.cas.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).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static final org.apache.commons.logging.Log logger
validProxies
private java.util.List validProxies
messages
protected org.springframework.context.support.MessageSourceAccessor messages
NamedCasProxyDecider
public NamedCasProxyDecider()
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Description copied from interface:
org.springframework.beans.factory.InitializingBean
- Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
This method allows the bean instance to perform initialization only
possible when all bean properties have been set and to throw an
exception in the event of misconfiguration.
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
confirmProxyListTrusted
public void confirmProxyListTrusted(java.util.List proxyList)
throws org.acegisecurity.providers.cas.ProxyUntrustedException
- Description copied from interface:
org.acegisecurity.providers.cas.CasProxyDecider
- Decides whether the proxy list is trusted.
Must throw any ProxyUntrustedException if the proxy list is
untrusted.
- Specified by:
confirmProxyListTrusted in interface org.acegisecurity.providers.cas.CasProxyDecider
getValidProxies
public java.util.List getValidProxies()
setMessageSource
public void setMessageSource(org.springframework.context.MessageSource messageSource)
- Description copied from interface:
org.springframework.context.MessageSourceAware
- Set the MessageSource that this object runs in.
Invoked after population of normal bean properties but before an init
callback like InitializingBean's afterPropertiesSet or a custom init-method.
Invoked before ApplicationContextAware's setApplicationContext.
- Specified by:
setMessageSource in interface org.springframework.context.MessageSourceAware
setValidProxies
public void setValidProxies(java.util.List validProxies)