Class SpringSecurityAuthorizationPolicy
- java.lang.Object
-
- org.apache.camel.model.IdentifiedType
-
- 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
Constructors Constructor Description SpringSecurityAuthorizationPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
beforeWrap
public void beforeWrap(org.apache.camel.Route route, org.apache.camel.NamedNode definition)
- Specified by:
beforeWrap
in interfaceorg.apache.camel.spi.Policy
-
wrap
public org.apache.camel.Processor wrap(org.apache.camel.Route route, org.apache.camel.Processor processor)
- Specified by:
wrap
in interfaceorg.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 interfaceorg.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 interfaceorg.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)
-
-