jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jackrabbit Wiki] Update of "JackrabbitOsgi" by FelixMeschberger
Date Fri, 29 Jan 2010 12:48:04 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification.

The "JackrabbitOsgi" page has been changed by FelixMeschberger.
http://wiki.apache.org/jackrabbit/JackrabbitOsgi?action=diff&rev1=4&rev2=5

--------------------------------------------------

  
  Because login modules are created for each login request and may keep internal state while
handling the login request, the service API for pluggable login modules defines a factory
interface:
  
+ {{{
+ public interface LoginModulePluginFactory {
  
+     /**
+      * The name of the service under which to register the module factory.
+      */
+     String SERVICE_NAME = "org.apache.jackrabbit.core.api.security.LoginModulePluginFactory";
+ 
+     /**
+      * Returns a login module is capable of handling the login request for the
+      * given <code>Credentials</code> instance or <code>null</code>
if this
+      * factory does not support the credentials.
+      *
+      * @param credentials The <code>Credentials</code> intended to be handled
by
+      *            the {@link LoginModulePlugin}.
+      */
+     LoginModulePlugin create(final Credentials credentials);
+ }}}
+ 
+ In the {{{doInit}}} method the {{{PluggableDefaultLoginModule}}} calls the {{{create}}}
method of all registered {{{LoginModulePluginFactory}}} services for a {{{LoginModulePlugin}}}.
The first factory returning an non-{{{null}}} instance "wins" and the instance is used throughout
the login process.
+ 
+ The actual plugin API is [[http://svn.apache.org/repos/asf/jackrabbit/sandbox/jackrabbit2-bundle/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/api/security/LoginModulePlugin.java|here]]
  
  
  == Pluggable Access Control Manager ==

Mime
View raw message