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 and Description |
---|
SpringSecurityAuthorizationPolicy() |
Modifier and Type | Method and Description |
---|---|
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) |
public void beforeWrap(org.apache.camel.spi.RouteContext routeContext, org.apache.camel.model.ProcessorDefinition<?> definition)
beforeWrap
in interface org.apache.camel.spi.Policy
public org.apache.camel.Processor wrap(org.apache.camel.spi.RouteContext routeContext, org.apache.camel.Processor processor)
wrap
in interface org.apache.camel.spi.Policy
protected void beforeProcess(org.apache.camel.Exchange exchange) throws Exception
Exception
protected org.springframework.security.core.Authentication getAuthentication(org.apache.camel.Message message)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public AuthenticationAdapter getAuthenticationAdapter()
public void setAuthenticationAdapter(AuthenticationAdapter adapter)
public org.springframework.security.access.AccessDecisionManager getAccessDecisionManager()
public org.springframework.security.authentication.AuthenticationManager getAuthenticationManager()
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher
in interface org.springframework.context.ApplicationEventPublisherAware
public void setSpringSecurityAccessPolicy(SpringSecurityAccessPolicy policy)
public SpringSecurityAccessPolicy getSpringSecurityAccessPolicy()
public boolean isAlwaysReauthenticate()
public void setAlwaysReauthenticate(boolean alwaysReauthenticate)
public boolean isUseThreadSecurityContext()
public void setUseThreadSecurityContext(boolean useThreadSecurityContext)
public void setAuthenticationManager(org.springframework.security.authentication.AuthenticationManager newManager)
public void setAccessDecisionManager(org.springframework.security.access.AccessDecisionManager accessDecisionManager)
Apache Camel