Class ExternalLoginModuleFactory
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.authentication.external.impl.ExternalLoginModuleFactory
-
- All Implemented Interfaces:
org.apache.felix.jaas.LoginModuleFactory,SyncHandlerMapping
@Service public class ExternalLoginModuleFactory extends Object implements org.apache.felix.jaas.LoginModuleFactory, SyncHandlerMapping
Implements a LoginModuleFactory that createsExternalLoginModules and allows to configure login modules via OSGi config.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJAAS_CONTROL_FLAGstatic StringJAAS_RANKINGstatic StringJAAS_REALM_NAMEstatic StringPARAM_IDP_NAMEstatic StringPARAM_SYNC_HANDLER_NAME
-
Constructor Summary
Constructors Constructor Description ExternalLoginModuleFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbindContentRepository(org.apache.jackrabbit.oak.api.ContentRepository contentRepository)voidbindIdpManager(ExternalIdentityProviderManager idpManager)voidbindSecurityProvider(org.apache.jackrabbit.oak.spi.security.SecurityProvider securityProvider)voidbindSyncManager(SyncManager syncManager)LoginModulecreateLoginModule()voidunbindContentRepository(org.apache.jackrabbit.oak.api.ContentRepository contentRepository)voidunbindIdpManager(ExternalIdentityProviderManager idpManager)voidunbindSecurityProvider(org.apache.jackrabbit.oak.spi.security.SecurityProvider securityProvider)voidunbindSyncManager(SyncManager syncManager)
-
-
-
Field Detail
-
JAAS_RANKING
@Property(intValue=150, 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="SUFFICIENT", 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
-
PARAM_IDP_NAME
@Property(label="Identity Provider Name", description="Name of the identity provider (for example: \'ldap\').") public static final String PARAM_IDP_NAME- See Also:
- Constant Field Values
-
PARAM_SYNC_HANDLER_NAME
@Property(value="default", label="Sync Handler Name", description="Name of the sync handler.") public static final String PARAM_SYNC_HANDLER_NAME- See Also:
- Constant Field Values
-
-
Method Detail
-
bindContentRepository
public void bindContentRepository(org.apache.jackrabbit.oak.api.ContentRepository contentRepository)
-
unbindContentRepository
public void unbindContentRepository(org.apache.jackrabbit.oak.api.ContentRepository contentRepository)
-
bindSecurityProvider
public void bindSecurityProvider(org.apache.jackrabbit.oak.spi.security.SecurityProvider securityProvider)
-
unbindSecurityProvider
public void unbindSecurityProvider(org.apache.jackrabbit.oak.spi.security.SecurityProvider securityProvider)
-
bindSyncManager
public void bindSyncManager(SyncManager syncManager)
-
unbindSyncManager
public void unbindSyncManager(SyncManager syncManager)
-
bindIdpManager
public void bindIdpManager(ExternalIdentityProviderManager idpManager)
-
unbindIdpManager
public void unbindIdpManager(ExternalIdentityProviderManager idpManager)
-
createLoginModule
public LoginModule createLoginModule()
- Specified by:
createLoginModulein interfaceorg.apache.felix.jaas.LoginModuleFactory- Returns:
- a new
ExternalLoginModuleinstance.
-
-