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.Route route,
org.apache.camel.NamedNode 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.Route route,
org.apache.camel.Processor processor) |
public void beforeWrap(org.apache.camel.Route route,
org.apache.camel.NamedNode definition)
beforeWrap in interface org.apache.camel.spi.Policypublic org.apache.camel.Processor wrap(org.apache.camel.Route route,
org.apache.camel.Processor processor)
wrap in interface org.apache.camel.spi.Policyprotected void beforeProcess(org.apache.camel.Exchange exchange)
throws Exception
Exceptionprotected org.springframework.security.core.Authentication getAuthentication(org.apache.camel.Message message)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic 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.ApplicationEventPublisherAwarepublic 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