Announcement Announcement Module
Collapse
No announcement yet.
How to Create FilterChainProxy inside java (and not through web.xml) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Create FilterChainProxy inside java (and not through web.xml)

    Hi,
    I am new to spring security. I am working on embedded jetty application. And we are not using web.xml.

    My spring context looks like the one below:

    Code:
    <beans:bean id="springSecurityFilterChain" class="org.springframework.security.web.FilterChainProxy">
          <filter-chain-map path-type="ant">
                  <filter-chain pattern="/**" filters="exceptionTranslationFilter"/>
          </filter-chain-map>
    </beans:bean>
    
    <beans:bean id="exceptionTranslationFilter"
      class="org.springframework.security.web.access.ExceptionTranslationFilter">
     <beans:property name="authenticationEntryPoint" ref="casEntryPoint"/>
    </beans:bean>

    How do I instantiate the bean springSecurityFilterChain and insert it before the servlets?
Working...
X