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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
protected org.springframework.security.core.Authentication
getAuthentication
(org.apache.camel.Message message) org.springframework.security.authentication.AuthenticationManager
boolean
boolean
void
setAccessDecisionManager
(org.springframework.security.access.AccessDecisionManager accessDecisionManager) void
setAlwaysReauthenticate
(boolean alwaysReauthenticate) void
setApplicationEventPublisher
(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) void
void
setAuthenticationManager
(org.springframework.security.authentication.AuthenticationManager newManager) void
void
setUseThreadSecurityContext
(boolean useThreadSecurityContext) org.apache.camel.Processor
wrap
(org.apache.camel.Route route, org.apache.camel.Processor processor) Methods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
-
Constructor Details
-
SpringSecurityAuthorizationPolicy
public SpringSecurityAuthorizationPolicy()
-
-
Method Details
-
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
- Throws:
Exception
-
getAuthentication
protected org.springframework.security.core.Authentication getAuthentication(org.apache.camel.Message message) -
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
getAuthenticationAdapter
-
setAuthenticationAdapter
-
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
-
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)
-