Class ContextSourceSettingPostProcessor

java.lang.Object
org.springframework.security.config.ldap.ContextSourceSettingPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.Ordered

public class ContextSourceSettingPostProcessor extends Object implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.Ordered
Checks for the presence of a ContextSource instance. Also supplies the standard reference to any unconfigured <ldap-authentication-provider> or <ldap-user-service> beans. This is necessary in cases where the user has given the server a specific Id, but hasn't used the server-ref attribute to link this to the other ldap definitions. See SEC-799.
Since:
3.0
  • Method Details

    • postProcessBeanFactory

      public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory bf) throws org.springframework.beans.BeansException
      Specified by:
      postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
      Throws:
      org.springframework.beans.BeansException
    • setDefaultNameRequired

      public void setDefaultNameRequired(boolean defaultNameRequired)
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered