Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.acegisecurity.providers.cas.proxy
Class NamedCasProxyDecider  view NamedCasProxyDecider download NamedCasProxyDecider.java

java.lang.Object
  extended byorg.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).


Field Summary
private static org.apache.commons.logging.Log logger
           
protected  org.springframework.context.support.MessageSourceAccessor messages
           
private  java.util.List validProxies
           
 
Constructor Summary
NamedCasProxyDecider()
           
 
Method Summary
 void afterPropertiesSet()
          Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
 void confirmProxyListTrusted(java.util.List proxyList)
          Decides whether the proxy list is trusted.
 java.util.List getValidProxies()
           
 void setMessageSource(org.springframework.context.MessageSource messageSource)
          Set the MessageSource that this object runs in.
 void setValidProxies(java.util.List validProxies)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final org.apache.commons.logging.Log logger

validProxies

private java.util.List validProxies

messages

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

NamedCasProxyDecider

public NamedCasProxyDecider()
Method Detail

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)