You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by ch...@apache.org on 2014/02/11 13:30:23 UTC
svn commit: r1567089 - in /jackrabbit/oak/trunk/oak-auth-external: pom.xml
src/main/java/org/apache/felix/ src/main/java/org/apache/felix/jaas/
src/main/java/org/apache/felix/jaas/LoginModuleFactory.java
Author: chetanm
Date: Tue Feb 11 12:30:23 2014
New Revision: 1567089
URL: http://svn.apache.org/r1567089
Log:
OAK-516 - Create LdapLoginModule based on ExternalLoginModule
Fixing build failure.
Apache Felix JAAS module is currently is not avialable in Maven central. As a temporary measure commiting the LoginModuleFactory locally. Once we have a released version available this would be removed
Added:
jackrabbit/oak/trunk/oak-auth-external/src/main/java/org/apache/felix/
jackrabbit/oak/trunk/oak-auth-external/src/main/java/org/apache/felix/jaas/
jackrabbit/oak/trunk/oak-auth-external/src/main/java/org/apache/felix/jaas/LoginModuleFactory.java (with props)
Modified:
jackrabbit/oak/trunk/oak-auth-external/pom.xml
Modified: jackrabbit/oak/trunk/oak-auth-external/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-auth-external/pom.xml?rev=1567089&r1=1567088&r2=1567089&view=diff
==============================================================================
Binary files - no diff available.
Added: jackrabbit/oak/trunk/oak-auth-external/src/main/java/org/apache/felix/jaas/LoginModuleFactory.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-auth-external/src/main/java/org/apache/felix/jaas/LoginModuleFactory.java?rev=1567089&view=auto
==============================================================================
--- jackrabbit/oak/trunk/oak-auth-external/src/main/java/org/apache/felix/jaas/LoginModuleFactory.java (added)
+++ jackrabbit/oak/trunk/oak-auth-external/src/main/java/org/apache/felix/jaas/LoginModuleFactory.java Tue Feb 11 12:30:23 2014
@@ -0,0 +1,66 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.felix.jaas;
+
+import javax.security.auth.spi.LoginModule;
+
+import aQute.bnd.annotation.ConsumerType;
+
+/**
+ * TODO - Taken from Apache Felix JAAS as a temporary mesaure. Should
+ * be removed once we have a released version of Felix JAAS Bundle
+ *
+ * A factory for creating {@link LoginModule} instances.
+ */
+@ConsumerType
+public interface LoginModuleFactory
+{
+ /**
+ * Property name specifying whether or not a <code>LoginModule</code> is
+ * REQUIRED, REQUISITE, SUFFICIENT or OPTIONAL. Refer to {@link javax.security.auth.login.Configuration}
+ * for more details around the meaning of these flags
+ *
+ * By default the value is set to REQUIRED
+ */
+ String JAAS_CONTROL_FLAG = "jaas.controlFlag";
+
+ /**
+ * Property name specifying the Realm name (or application name) against which the
+ * LoginModule would be registered.
+ *
+ * <p>If no realm name is provided then LoginModule would registered with a default realm
+ * as configured
+ */
+ String JAAS_REALM_NAME = "jaas.realmName";
+
+ /**
+ * Property name specifying the ranking (i.e. sort order) of the configured login module entries. The entries
+ * are sorted in a descending order (i.e. higher value ranked configurations come first)
+ * @since 1.0.1 (bundle version 0.0.2)
+ */
+ String JAAS_RANKING = "jaas.ranking";
+
+ /**
+ * Creates the LoginModule instance
+ * @return loginModule instance
+ */
+ LoginModule createLoginModule();
+
+}
Propchange: jackrabbit/oak/trunk/oak-auth-external/src/main/java/org/apache/felix/jaas/LoginModuleFactory.java
------------------------------------------------------------------------------
svn:eol-style = native
Re: svn commit: r1567089 - in /jackrabbit/oak/trunk/oak-auth-external:
pom.xml src/main/java/org/apache/felix/ src/main/java/org/apache/felix/jaas/
src/main/java/org/apache/felix/jaas/LoginModuleFactory.java
Posted by Julian Reschke <ju...@gmx.de>.
On 2014-02-11 13:30, chetanm@apache.org wrote:
> Author: chetanm
> Date: Tue Feb 11 12:30:23 2014
> New Revision: 1567089
>
> URL: http://svn.apache.org/r1567089
> Log:
> OAK-516 - Create LdapLoginModule based on ExternalLoginModule
>
> Fixing build failure.
>
> Apache Felix JAAS module is currently is not avialable in Maven central. As a temporary measure commiting the LoginModuleFactory locally. Once we have a released version available this would be removed
> ...
Thanks! (I was seconds away from disabling the build for these subprojects)
Best regards, Julian