public class UserDetailsManagerResourceFactoryBean extends java.lang.Object implements org.springframework.context.ResourceLoaderAware, org.springframework.beans.factory.FactoryBean<InMemoryUserDetailsManager>
InMemoryUserDetailsManager
from a resource using
UserDetailsResourceFactoryBean
.UserDetailsResourceFactoryBean
Constructor and Description |
---|
UserDetailsManagerResourceFactoryBean() |
Modifier and Type | Method and Description |
---|---|
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 . |
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 . |
static UserDetailsManagerResourceFactoryBean |
fromString(java.lang.String users)
Create a UserDetailsManagerResourceFactoryBean with a String that is in the format
defined in
UserDetailsResourceFactoryBean . |
InMemoryUserDetailsManager |
getObject() |
java.lang.Class<?> |
getObjectType() |
void |
setResource(org.springframework.core.io.Resource resource)
Sets a Resource that is a Properties file in the format defined in
UserDetailsResourceFactoryBean . |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) |
void |
setResourceLocation(java.lang.String resourceLocation)
Sets the location of a Resource that is a Properties file in the format defined in
UserDetailsResourceFactoryBean . |
public UserDetailsManagerResourceFactoryBean()
public InMemoryUserDetailsManager getObject() throws java.lang.Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<InMemoryUserDetailsManager>
java.lang.Exception
public java.lang.Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<InMemoryUserDetailsManager>
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader
in interface org.springframework.context.ResourceLoaderAware
public void setResourceLocation(java.lang.String resourceLocation)
UserDetailsResourceFactoryBean
.resourceLocation
- the location of the properties file that contains the users
(i.e. "classpath:users.properties")public void setResource(org.springframework.core.io.Resource resource)
UserDetailsResourceFactoryBean
.resource
- the Resource to usepublic static UserDetailsManagerResourceFactoryBean fromResourceLocation(java.lang.String resourceLocation)
UserDetailsResourceFactoryBean
.resourceLocation
- the location of the properties file that contains the users
(i.e. "classpath:users.properties")public static UserDetailsManagerResourceFactoryBean fromResource(org.springframework.core.io.Resource resource)
UserDetailsResourceFactoryBean
.resource
- the Resource that is a properties file that contains the userspublic static UserDetailsManagerResourceFactoryBean fromString(java.lang.String users)
UserDetailsResourceFactoryBean
.users
- the users in the format defined in
UserDetailsResourceFactoryBean