Package org.ldaptive.jaas
Class PropertiesAuthenticatorFactory
- java.lang.Object
-
- org.ldaptive.jaas.AbstractPropertiesFactory
-
- org.ldaptive.jaas.PropertiesAuthenticatorFactory
-
- All Implemented Interfaces:
AuthenticatorFactory
public class PropertiesAuthenticatorFactory extends AbstractPropertiesFactory implements AuthenticatorFactory
Provides a module authenticator factory implementation that uses the properties package in this library.
-
-
Field Summary
Fields Modifier and Type Field Description private static Map<String,Authenticator>CACHEObject CACHE.-
Fields inherited from class org.ldaptive.jaas.AbstractPropertiesFactory
CACHE_ID, logger
-
-
Constructor Summary
Constructors Constructor Description PropertiesAuthenticatorFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidclose()Iterates over the CACHE and closes any managed dn resolvers and managed authentication handlers.AuthenticationRequestcreateAuthenticationRequest(Map<String,?> jaasOptions)Creates a new authentication request with the supplied JAAS options.AuthenticatorcreateAuthenticator(Map<String,?> jaasOptions)Creates a new authenticator with the supplied JAAS options.protected AuthenticatorcreateAuthenticatorInternal(Map<String,?> options)Initializes an authenticator using an authenticator property source.-
Methods inherited from class org.ldaptive.jaas.AbstractPropertiesFactory
createProperties
-
-
-
-
Field Detail
-
CACHE
private static final Map<String,Authenticator> CACHE
Object CACHE.
-
-
Method Detail
-
createAuthenticator
public Authenticator createAuthenticator(Map<String,?> jaasOptions)
Description copied from interface:AuthenticatorFactoryCreates a new authenticator with the supplied JAAS options.- Specified by:
createAuthenticatorin interfaceAuthenticatorFactory- Parameters:
jaasOptions- JAAS configuration options- Returns:
- authenticator
-
createAuthenticatorInternal
protected Authenticator createAuthenticatorInternal(Map<String,?> options)
Initializes an authenticator using an authenticator property source.- Parameters:
options- to initialize authenticator- Returns:
- authenticator
-
createAuthenticationRequest
public AuthenticationRequest createAuthenticationRequest(Map<String,?> jaasOptions)
Description copied from interface:AuthenticatorFactoryCreates a new authentication request with the supplied JAAS options.- Specified by:
createAuthenticationRequestin interfaceAuthenticatorFactory- Parameters:
jaasOptions- JAAS configuration options- Returns:
- authentication request
-
close
public static void close()
Iterates over the CACHE and closes any managed dn resolvers and managed authentication handlers.
-
-