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<org.springframework.security.core.userdetails.MapReactiveUserDetailsService>,org.springframework.context.ResourceLoaderAware
public class ReactiveUserDetailsServiceResourceFactoryBean
extends Object
implements org.springframework.context.ResourceLoaderAware, org.springframework.beans.factory.FactoryBean<org.springframework.security.core.userdetails.MapReactiveUserDetailsService>
Constructs an
MapReactiveUserDetailsService from a resource using
UserDetailsResourceFactoryBean.- Since:
- 5.0
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromResource(org.springframework.core.io.Resource propertiesResource) Create a ReactiveUserDetailsServiceResourceFactoryBean with a Resource that is a Properties file in the format defined inUserDetailsResourceFactoryBean.fromResourceLocation(String resourceLocation) Create a ReactiveUserDetailsServiceResourceFactoryBean with the location of a Resource that is a Properties file in the format defined inUserDetailsResourceFactoryBean.fromString(String users) Create a ReactiveUserDetailsServiceResourceFactoryBean with a String that is in the format defined inUserDetailsResourceFactoryBean.org.springframework.security.core.userdetails.MapReactiveUserDetailsServiceClass<?>voidsetResource(org.springframework.core.io.Resource resource) Sets a Resource that is a Properties file in the format defined inUserDetailsResourceFactoryBean.voidsetResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) voidsetResourceLocation(String resourceLocation) Sets the location of a Resource that is a Properties file in the format defined inUserDetailsResourceFactoryBean.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Constructor Details
-
ReactiveUserDetailsServiceResourceFactoryBean
public ReactiveUserDetailsServiceResourceFactoryBean()
-
-
Method Details
-
getObject
public org.springframework.security.core.userdetails.MapReactiveUserDetailsService getObject() throws Exception- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<org.springframework.security.core.userdetails.MapReactiveUserDetailsService>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<org.springframework.security.core.userdetails.MapReactiveUserDetailsService>
-
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) - Specified by:
setResourceLoaderin interfaceorg.springframework.context.ResourceLoaderAware
-
setResourceLocation
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(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
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
-