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
FieldsFields inherited from class org.ldaptive.jaas.AbstractPropertiesFactory
CACHE_ID, logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
close()
Iterates over the CACHE and closes any managed dn resolvers and managed authentication handlers.createAuthenticationRequest
(Map<String, ?> jaasOptions) Creates a new authentication request with the supplied JAAS options.createAuthenticator
(Map<String, ?> jaasOptions) Creates a new authenticator with the supplied JAAS options.protected Authenticator
createAuthenticatorInternal
(Map<String, ?> options) Initializes an authenticator using an authenticator property source.Methods inherited from class org.ldaptive.jaas.AbstractPropertiesFactory
createProperties
-
Field Details
-
CACHE
Object CACHE.
-
-
Constructor Details
-
PropertiesAuthenticatorFactory
public PropertiesAuthenticatorFactory()
-
-
Method Details
-
createAuthenticator
Description copied from interface:AuthenticatorFactory
Creates a new authenticator with the supplied JAAS options.- Specified by:
createAuthenticator
in interfaceAuthenticatorFactory
- Parameters:
jaasOptions
- JAAS configuration options- Returns:
- authenticator
-
createAuthenticatorInternal
Initializes an authenticator using an authenticator property source.- Parameters:
options
- to initialize authenticator- Returns:
- authenticator
-
createAuthenticationRequest
Description copied from interface:AuthenticatorFactory
Creates a new authentication request with the supplied JAAS options.- Specified by:
createAuthenticationRequest
in 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.
-