Return-Path: X-Original-To: apmail-felix-commits-archive@www.apache.org Delivered-To: apmail-felix-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E0EFAF0A0 for ; Fri, 5 Apr 2013 15:05:40 +0000 (UTC) Received: (qmail 65507 invoked by uid 500); 5 Apr 2013 15:05:40 -0000 Delivered-To: apmail-felix-commits-archive@felix.apache.org Received: (qmail 65474 invoked by uid 500); 5 Apr 2013 15:05:40 -0000 Mailing-List: contact commits-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list commits@felix.apache.org Received: (qmail 65466 invoked by uid 99); 5 Apr 2013 15:05:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Apr 2013 15:05:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Apr 2013 15:05:39 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 60FE923889BB for ; Fri, 5 Apr 2013 15:05:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r857409 - in /websites/staging/felix/trunk/content: ./ documentation/subprojects/apache-felix-jaas.html Date: Fri, 05 Apr 2013 15:05:19 -0000 To: commits@felix.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130405150519.60FE923889BB@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: buildbot Date: Fri Apr 5 15:05:18 2013 New Revision: 857409 Log: Staging update by buildbot for felix Modified: websites/staging/felix/trunk/content/ (props changed) websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-jaas.html Propchange: websites/staging/felix/trunk/content/ ------------------------------------------------------------------------------ --- cms:source-revision (original) +++ cms:source-revision Fri Apr 5 15:05:18 2013 @@ -1 +1 @@ -1464990 +1464998 Modified: websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-jaas.html ============================================================================== --- websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-jaas.html (original) +++ websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-jaas.html Fri Apr 5 15:05:18 2013 @@ -112,7 +112,7 @@ Work in progress as part of FELIX-3980
  • 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
    • @@ -124,24 +124,26 @@ Work in progress as part of FELIX-3980 -
      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 - jaas.ranking - Ranking for the LoginModule. It would be used to order the various login modules

      +

      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
      • +
      • jaas.ranking - Ranking for the LoginModule. It would be used to order the various login modules
      • +

      For an example refer to Sample Confiuration. 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 interface. The factory needs to be registeredwith following optional properties

      • 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
      • service.ranking - Ranking for the LoginModule. It would be used to order the various login modules

        -

        :::java -/ +

        :::java

        +

        / * A factory for creating {@link LoginModule} instances. */ public interface LoginModuleFactory @@ -181,7 +183,7 @@ public interface LoginModuleFactory

      • JAAS Login Configuration File
      • - Rev. 1464990 by chetanm on Fri, 5 Apr 2013 14:38:36 +0000 + Rev. 1464998 by chetanm on Fri, 5 Apr 2013 15:05:10 +0000
        Apache Felix, Felix, Apache, the Apache feather logo, and the Apache Felix project