org.apache.camel.component.spring.security
Class SpringSecurityAuthorizationPolicy

java.lang.Object
  extended by org.apache.camel.model.IdentifiedType
      extended by org.apache.camel.component.spring.security.SpringSecurityAuthorizationPolicy
All Implemented Interfaces:
org.apache.camel.spi.AuthorizationPolicy, org.apache.camel.spi.Policy, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationEventPublisherAware

public class SpringSecurityAuthorizationPolicy
extends org.apache.camel.model.IdentifiedType
implements org.apache.camel.spi.AuthorizationPolicy, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationEventPublisherAware


Constructor Summary
SpringSecurityAuthorizationPolicy()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  void beforeProcess(org.apache.camel.Exchange exchange)
           
 void beforeWrap(org.apache.camel.spi.RouteContext routeContext, org.apache.camel.model.ProcessorDefinition<?> definition)
           
 org.springframework.security.access.AccessDecisionManager getAccessDecisionManager()
           
protected  org.springframework.security.core.Authentication getAuthentication(org.apache.camel.Message message)
           
 AuthenticationAdapter getAuthenticationAdapter()
           
 org.springframework.security.authentication.AuthenticationManager getAuthenticationManager()
           
 SpringSecurityAccessPolicy getSpringSecurityAccessPolicy()
           
 boolean isAlwaysReauthenticate()
           
 boolean isUseThreadSecurityContext()
           
 void setAccessDecisionManager(org.springframework.security.access.AccessDecisionManager accessDecisionManager)
           
 void setAlwaysReauthenticate(boolean alwaysReauthenticate)
           
 void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
           
 void setAuthenticationAdapter(AuthenticationAdapter adapter)
           
 void setAuthenticationManager(org.springframework.security.authentication.AuthenticationManager newManager)
           
 void setSpringSecurityAccessPolicy(SpringSecurityAccessPolicy policy)
           
 void setUseThreadSecurityContext(boolean useThreadSecurityContext)
           
 org.apache.camel.Processor wrap(org.apache.camel.spi.RouteContext routeContext, org.apache.camel.Processor processor)
           
 
Methods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringSecurityAuthorizationPolicy

public SpringSecurityAuthorizationPolicy()
Method Detail

beforeWrap

public void beforeWrap(org.apache.camel.spi.RouteContext routeContext,
                       org.apache.camel.model.ProcessorDefinition<?> definition)
Specified by:
beforeWrap in interface org.apache.camel.spi.Policy

wrap

public org.apache.camel.Processor wrap(org.apache.camel.spi.RouteContext routeContext,
                                       org.apache.camel.Processor processor)
Specified by:
wrap in interface org.apache.camel.spi.Policy

beforeProcess

protected void beforeProcess(org.apache.camel.Exchange exchange)
                      throws Exception
Throws:
Exception

getAuthentication

protected org.springframework.security.core.Authentication getAuthentication(org.apache.camel.Message message)

afterPropertiesSet

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

getAuthenticationAdapter

public AuthenticationAdapter getAuthenticationAdapter()

setAuthenticationAdapter

public void setAuthenticationAdapter(AuthenticationAdapter adapter)

getAccessDecisionManager

public org.springframework.security.access.AccessDecisionManager getAccessDecisionManager()

getAuthenticationManager

public org.springframework.security.authentication.AuthenticationManager getAuthenticationManager()

setApplicationEventPublisher

public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
Specified by:
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAware

setSpringSecurityAccessPolicy

public void setSpringSecurityAccessPolicy(SpringSecurityAccessPolicy policy)

getSpringSecurityAccessPolicy

public SpringSecurityAccessPolicy getSpringSecurityAccessPolicy()

isAlwaysReauthenticate

public boolean isAlwaysReauthenticate()

setAlwaysReauthenticate

public void setAlwaysReauthenticate(boolean alwaysReauthenticate)

isUseThreadSecurityContext

public boolean isUseThreadSecurityContext()

setUseThreadSecurityContext

public void setUseThreadSecurityContext(boolean useThreadSecurityContext)

setAuthenticationManager

public void setAuthenticationManager(org.springframework.security.authentication.AuthenticationManager newManager)

setAccessDecisionManager

public void setAccessDecisionManager(org.springframework.security.access.AccessDecisionManager accessDecisionManager)


Apache CAMEL