Class 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 Detail

      • SpringSecurityAuthorizationPolicy

        public SpringSecurityAuthorizationPolicy()
    • Method Detail

      • beforeWrap

        public void beforeWrap​(org.apache.camel.Route route,
                               org.apache.camel.NamedNode definition)
        Specified by:
        beforeWrap in interface org.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 interface org.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 interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • 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 interface org.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)
      • setAccessDecisionManager

        public void setAccessDecisionManager​(org.springframework.security.access.AccessDecisionManager accessDecisionManager)