Class ReactiveUserDetailsServiceResourceFactoryBean
- java.lang.Object
-
- org.springframework.security.config.core.userdetails.ReactiveUserDetailsServiceResourceFactoryBean
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.FactoryBean<MapReactiveUserDetailsService>
,org.springframework.context.ResourceLoaderAware
public class ReactiveUserDetailsServiceResourceFactoryBean extends java.lang.Object implements org.springframework.context.ResourceLoaderAware, org.springframework.beans.factory.FactoryBean<MapReactiveUserDetailsService>
Constructs anMapReactiveUserDetailsService
from a resource usingUserDetailsResourceFactoryBean
.- Since:
- 5.0
- See Also:
UserDetailsResourceFactoryBean
-
-
Constructor Summary
Constructors Constructor Description ReactiveUserDetailsServiceResourceFactoryBean()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReactiveUserDetailsServiceResourceFactoryBean
fromResource(org.springframework.core.io.Resource propertiesResource)
Create a ReactiveUserDetailsServiceResourceFactoryBean with a Resource that is a Properties file in the format defined inUserDetailsResourceFactoryBean
.static ReactiveUserDetailsServiceResourceFactoryBean
fromResourceLocation(java.lang.String resourceLocation)
Create a ReactiveUserDetailsServiceResourceFactoryBean with the location of a Resource that is a Properties file in the format defined inUserDetailsResourceFactoryBean
.static ReactiveUserDetailsServiceResourceFactoryBean
fromString(java.lang.String users)
Create a ReactiveUserDetailsServiceResourceFactoryBean with a String that is in the format defined inUserDetailsResourceFactoryBean
.MapReactiveUserDetailsService
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 inUserDetailsResourceFactoryBean
.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 inUserDetailsResourceFactoryBean
.
-
-
-
Method Detail
-
getObject
public MapReactiveUserDetailsService getObject() throws java.lang.Exception
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<MapReactiveUserDetailsService>
- Throws:
java.lang.Exception
-
getObjectType
public java.lang.Class<?> getObjectType()
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<MapReactiveUserDetailsService>
-
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
- Specified by:
setResourceLoader
in interfaceorg.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 inUserDetailsResourceFactoryBean
.- 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 inUserDetailsResourceFactoryBean
.- Parameters:
resource
- the Resource to use
-
fromResourceLocation
public static ReactiveUserDetailsServiceResourceFactoryBean fromResourceLocation(java.lang.String resourceLocation)
Create a ReactiveUserDetailsServiceResourceFactoryBean with the location of a Resource that is a Properties file in the format defined inUserDetailsResourceFactoryBean
.- Parameters:
resourceLocation
- the location of the properties file that contains the users (i.e. "classpath:users.properties")- Returns:
- the ReactiveUserDetailsServiceResourceFactoryBean
-
fromResource
public static ReactiveUserDetailsServiceResourceFactoryBean fromResource(org.springframework.core.io.Resource propertiesResource)
Create a ReactiveUserDetailsServiceResourceFactoryBean with a Resource that is a Properties file in the format defined inUserDetailsResourceFactoryBean
.- Parameters:
propertiesResource
- the Resource that is a properties file that contains the users- Returns:
- the ReactiveUserDetailsServiceResourceFactoryBean
-
fromString
public static ReactiveUserDetailsServiceResourceFactoryBean fromString(java.lang.String users)
Create a ReactiveUserDetailsServiceResourceFactoryBean with a String that is in the format defined inUserDetailsResourceFactoryBean
.- Parameters:
users
- the users in the format defined inUserDetailsResourceFactoryBean
- Returns:
- the ReactiveUserDetailsServiceResourceFactoryBean
-
-