You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by ch...@apache.org on 2013/04/05 17:05:11 UTC
svn commit: r1464998 -
/felix/site/trunk/content/documentation/subprojects/apache-felix-jaas.mdtext
Author: chetanm
Date: Fri Apr 5 15:05:10 2013
New Revision: 1464998
URL: http://svn.apache.org/r1464998
Log:
Minor formatting tweaks
Modified:
felix/site/trunk/content/documentation/subprojects/apache-felix-jaas.mdtext
Modified: felix/site/trunk/content/documentation/subprojects/apache-felix-jaas.mdtext
URL: http://svn.apache.org/viewvc/felix/site/trunk/content/documentation/subprojects/apache-felix-jaas.mdtext?rev=1464998&r1=1464997&r2=1464998&view=diff
==============================================================================
--- felix/site/trunk/content/documentation/subprojects/apache-felix-jaas.mdtext (original)
+++ felix/site/trunk/content/documentation/subprojects/apache-felix-jaas.mdtext Fri Apr 5 15:05:10 2013
@@ -50,7 +50,7 @@ The login modules can be registered via
* OSGi Configuration
* LoginModuleFactory registered with the OSGi ServiceRegistry
-#### OSGi Configuration
+#### A - OSGi Configuration
LoginModules can also be configured via configuration which is somewhat similar to the file based configuration. It consist of two parts
* Information around which bundle provides a specific LoginModule module
@@ -62,12 +62,13 @@ Any bundle which provides a LoginModule
:::xml
<Jaas-ModuleClass>org.apache.felix.example.jaas.config.internal.SampleConfigLoginModule</Jaas-ModuleClass>
-##### OSGi Configuration
+##### Configuration
JAAS module depends on OSGi Configuration for managing the LoginModule configuration. The configuration factory PID is `org.apache.felix.jaas.Configuration.factory`.It provides the required metatype descriptor thus enabling configuration via via "Configuration" tab of Felix WebConsole
!jaas-config.png!
Configuration properties
+
* `jaas.classname` - Fully qualified name of the LoginModule class
* `jaas.controlFlag` - LoginControlFlag to use like required, optional, requisite, sufficient. Default is set to required
* `jaas.realmName` - JAAS Realm name. If specified then LoginModule would be registered against given realm otherwise it is bound to a 'other' realm
@@ -75,7 +76,7 @@ Configuration properties
For an example refer to [Sample Confiuration](http://svn.apache.org/repos/asf/felix/trunk/examples/jaas/launcher/src/main/config/org.apache.felix.jaas.Configuration.factory-simple.cfg). It configures a SampleConfigLoginModule for `sample` realm
-#### LoginModuleFactory
+#### B - LoginModuleFactory
Any bundle which want to provide a LoginModule implementation would need to provide a factory service which implements the [LoginModuleFactory](http://svn.apache.org/repos/asf/felix/trunk/jaas/src/main/java/org/apache/felix/jaas/LoginModuleFactory.java) interface. The factory needs to be registeredwith following optional properties
@@ -84,6 +85,7 @@ Any bundle which want to provide a Login
* `service.ranking` - Ranking for the LoginModule. It would be used to order the various login modules
:::java
+
/**
* A factory for creating {@link LoginModule} instances.
*/