Class UserDetailsManagerResourceFactoryBean

    • Constructor Detail

      • UserDetailsManagerResourceFactoryBean

        public UserDetailsManagerResourceFactoryBean()
    • Method Detail

      • getObjectType

        public java.lang.Class<?> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<InMemoryUserDetailsManager>
      • setResourceLoader

        public void setResourceLoader​(org.springframework.core.io.ResourceLoader resourceLoader)
        Specified by:
        setResourceLoader in interface org.springframework.context.ResourceLoaderAware
      • setResourceLocation

        public void setResourceLocation​(java.lang.String resourceLocation)
        Sets the location of a Resource that is a Properties file in the format defined in UserDetailsResourceFactoryBean.
        Parameters:
        resourceLocation - the location of the properties file that contains the users (i.e. "classpath:users.properties")
      • setResource

        public void setResource​(org.springframework.core.io.Resource resource)
        Sets a Resource that is a Properties file in the format defined in UserDetailsResourceFactoryBean.
        Parameters:
        resource - the Resource to use
      • fromResourceLocation

        public static UserDetailsManagerResourceFactoryBean fromResourceLocation​(java.lang.String resourceLocation)
        Create a UserDetailsManagerResourceFactoryBean with the location of a Resource that is a Properties file in the format defined in UserDetailsResourceFactoryBean.
        Parameters:
        resourceLocation - the location of the properties file that contains the users (i.e. "classpath:users.properties")
        Returns:
        the UserDetailsManagerResourceFactoryBean
      • fromResource

        public static UserDetailsManagerResourceFactoryBean fromResource​(org.springframework.core.io.Resource resource)
        Create a UserDetailsManagerResourceFactoryBean with a Resource that is a Properties file in the format defined in UserDetailsResourceFactoryBean.
        Parameters:
        resource - the Resource that is a properties file that contains the users
        Returns:
        the UserDetailsManagerResourceFactoryBean