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 TypeMethodDescriptionvoidprotected voidbeforeProcess(org.apache.camel.Exchange exchange) voidbeforeWrap(org.apache.camel.Route route, org.apache.camel.NamedNode definition) protected org.springframework.security.core.AuthenticationgetAuthentication(org.apache.camel.Message message) org.springframework.security.authentication.AuthenticationManagerorg.springframework.security.authorization.AuthorizationManager<org.apache.camel.Exchange> booleanbooleanvoidsetAlwaysReauthenticate(boolean alwaysReauthenticate) voidsetApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) voidvoidsetAuthenticationManager(org.springframework.security.authentication.AuthenticationManager newManager) voidsetAuthorizationManager(org.springframework.security.authorization.AuthorizationManager<org.apache.camel.Exchange> authorizationManager) voidsetUseThreadSecurityContext(boolean useThreadSecurityContext) org.apache.camel.Processorwrap(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:
beforeWrapin interfaceorg.apache.camel.spi.Policy
-
wrap
public org.apache.camel.Processor wrap(org.apache.camel.Route route, org.apache.camel.Processor processor) - Specified by:
wrapin interfaceorg.apache.camel.spi.Policy
-
beforeProcess
- Throws:
Exception
-
getAuthentication
protected org.springframework.security.core.Authentication getAuthentication(org.apache.camel.Message message) -
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
getAuthenticationAdapter
-
setAuthenticationAdapter
-
getAuthorizationManager
public org.springframework.security.authorization.AuthorizationManager<org.apache.camel.Exchange> getAuthorizationManager() -
getAuthenticationManager
public org.springframework.security.authentication.AuthenticationManager getAuthenticationManager() -
setApplicationEventPublisher
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) - Specified by:
setApplicationEventPublisherin interfaceorg.springframework.context.ApplicationEventPublisherAware
-
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) -
setAuthorizationManager
public void setAuthorizationManager(org.springframework.security.authorization.AuthorizationManager<org.apache.camel.Exchange> authorizationManager)
-