Class CustomLoginModuleFactory
- java.lang.Object
-
- org.apache.jackrabbit.oak.exercise.security.authentication.CustomLoginModuleFactory
-
- All Implemented Interfaces:
org.apache.felix.jaas.LoginModuleFactory
@Service public class CustomLoginModuleFactory extends Object implements org.apache.felix.jaas.LoginModuleFactory
Implements a LoginModuleFactory that createsCustomLoginModule
s and allows to configure login modules via OSGi config.
-
-
Field Summary
Fields Modifier and Type Field Description static String
JAAS_CONTROL_FLAG
static String
JAAS_RANKING
static String
JAAS_REALM_NAME
-
Constructor Summary
Constructors Constructor Description CustomLoginModuleFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoginModule
createLoginModule()
-
-
-
Field Detail
-
JAAS_RANKING
@Property(intValue=500, label="JAAS Ranking", description="Specifying the ranking (i.e. sort order) of this login module entry. The entries are sorted in a descending order (i.e. higher value ranked configurations come first).") public static final String JAAS_RANKING
- See Also:
- Constant Field Values
-
JAAS_CONTROL_FLAG
@Property(value="OPTIONAL", label="JAAS Control Flag", description="Property specifying whether or not a LoginModule is REQUIRED, REQUISITE, SUFFICIENT or OPTIONAL. Refer to the JAAS configuration documentation for more details around the meaning of these flags.") public static final String JAAS_CONTROL_FLAG
- See Also:
- Constant Field Values
-
JAAS_REALM_NAME
@Property(label="JAAS Realm", description="The realm name (or application name) against which the LoginModule is be registered. If no realm name is provided then LoginModule is registered with a default realm as configured in the Felix JAAS configuration.") public static final String JAAS_REALM_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
createLoginModule
public LoginModule createLoginModule()
- Specified by:
createLoginModule
in interfaceorg.apache.felix.jaas.LoginModuleFactory
- Returns:
- a new
ExternalLoginModule
instance.
-
-