Package org.ldaptive.jaas
Class PropertiesRoleResolverFactory
- java.lang.Object
-
- org.ldaptive.jaas.AbstractPropertiesFactory
-
- org.ldaptive.jaas.PropertiesRoleResolverFactory
-
- All Implemented Interfaces:
RoleResolverFactory
public class PropertiesRoleResolverFactory extends AbstractPropertiesFactory implements RoleResolverFactory
Provides a module role resolver factory implementation that uses the properties package in this library.
-
-
Field Summary
Fields Modifier and Type Field Description private static Map<String,RoleResolver>
CACHE
Object CACHE.-
Fields inherited from class org.ldaptive.jaas.AbstractPropertiesFactory
CACHE_ID, logger
-
-
Constructor Summary
Constructors Constructor Description PropertiesRoleResolverFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
close()
Iterates over the CACHE and closes all role resolvers.RoleResolver
createRoleResolver(Map<String,?> jaasOptions)
Creates a new role resolver with the supplied JAAS options.protected RoleResolver
createRoleResolverInternal(Map<String,?> options)
Initializes a role resolver using a role resolver property source.SearchRequest
createSearchRequest(Map<String,?> jaasOptions)
Creates a new search request with the supplied JAAS options.-
Methods inherited from class org.ldaptive.jaas.AbstractPropertiesFactory
createProperties
-
-
-
-
Field Detail
-
CACHE
private static final Map<String,RoleResolver> CACHE
Object CACHE.
-
-
Method Detail
-
createRoleResolver
public RoleResolver createRoleResolver(Map<String,?> jaasOptions)
Description copied from interface:RoleResolverFactory
Creates a new role resolver with the supplied JAAS options.- Specified by:
createRoleResolver
in interfaceRoleResolverFactory
- Parameters:
jaasOptions
- JAAS configuration options- Returns:
- role resolver
-
createRoleResolverInternal
protected RoleResolver createRoleResolverInternal(Map<String,?> options)
Initializes a role resolver using a role resolver property source.- Parameters:
options
- to initialize role resolver- Returns:
- role resolver
-
createSearchRequest
public SearchRequest createSearchRequest(Map<String,?> jaasOptions)
Description copied from interface:RoleResolverFactory
Creates a new search request with the supplied JAAS options.- Specified by:
createSearchRequest
in interfaceRoleResolverFactory
- Parameters:
jaasOptions
- JAAS configuration options- Returns:
- search request
-
close
public static void close()
Iterates over the CACHE and closes all role resolvers.
-
-