SecurityNamespaceHandler.java 1.7 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. *
  3. */
  4. package org.acegisecurity.config;
  5. import org.springframework.beans.factory.xml.BeanDefinitionParser;
  6. import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
  7. /**
  8. * {@link org.springframework.beans.factory.xml.NamespaceHandler} for the '<code>security</code>' namespace.
  9. * @author vpuri
  10. *
  11. * @since
  12. */
  13. public class SecurityNamespaceHandler extends NamespaceHandlerSupport {
  14. /**
  15. * Register the {@link BeanDefinitionParser BeanDefinitionParsers} for the
  16. * '<code>context-integration</code>', ' and '<code></code>' elements.
  17. */
  18. public void init() {
  19. registerBeanDefinitionParser("principal-repository", new PrincipalRepositoryBeanDefinitionParser());
  20. registerBeanDefinitionParser("session-context-integration", new ContextIntegrationBeanDefinitionParser());
  21. registerBeanDefinitionParser("authentication-repository", new AuthenticationRepositoryBeanDefinitionParser());
  22. registerBeanDefinitionParser("authentication-mechanism", new AuthenticationMechanismBeanDefinitionParser());
  23. registerBeanDefinitionParser("authentication-remember-me-services", new RememberMeServicesBeanDefinitionParser());
  24. registerBeanDefinitionParser("authentication-remember-me-filter", new RememberMeFilterBeanDefinitionParser());
  25. registerBeanDefinitionParser("logout-support", new LogoutFilterBeanDefinitionParser());
  26. registerBeanDefinitionParser("exception-translation", new ExceptionTranslationFilterBeanDefinitionParser());
  27. registerBeanDefinitionParser("authentication-form", new AuthenticationProcessingFilterBeanDefinitionParser());
  28. registerBeanDefinitionParser("authorization-http-url", new FilterSecurityInterceptorBeanDefinitionParser());
  29. registerBeanDefinitionParser("autoconfig", new AutoConfigBeanDefinitionParser());
  30. }
  31. }