jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1393001 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/security/authentication/OpenLoginModule.java
Date Tue, 02 Oct 2012 16:06:06 GMT
Author: angela
Date: Tue Oct  2 16:06:06 2012
New Revision: 1393001

URL: http://svn.apache.org/viewvc?rev=1393001&view=rev
Log:
 OAK-91 - Implement Authentication Support (WIP)
 
 - OpenLoginModule should implement LoginModule instead of extending AbstractLoginModule as
it
    doesn't make use of the functionality provided.

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/security/authentication/OpenLoginModule.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/security/authentication/OpenLoginModule.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/security/authentication/OpenLoginModule.java?rev=1393001&r1=1393000&r2=1393001&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/security/authentication/OpenLoginModule.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/security/authentication/OpenLoginModule.java
Tue Oct  2 16:06:06 2012
@@ -16,9 +16,9 @@
  */
 package org.apache.jackrabbit.oak.spi.security.authentication;
 
-import java.util.Collections;
-import java.util.Set;
-
+import java.util.Map;
+import javax.security.auth.Subject;
+import javax.security.auth.callback.CallbackHandler;
 import javax.security.auth.login.LoginException;
 import javax.security.auth.spi.LoginModule;
 
@@ -26,11 +26,11 @@ import javax.security.auth.spi.LoginModu
  * This class implements a {@link LoginModule} which allows any authenticating
  * Subject to login.
  */
-public class OpenLoginModule extends AbstractLoginModule {
+public class OpenLoginModule implements LoginModule {
 
     @Override
-    protected Set<Class> getSupportedCredentials() {
-        return Collections.emptySet();
+    public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,
?> stringMap, Map<String, ?> stringMap1) {
+        // nothing to do
     }
 
     @Override
@@ -47,4 +47,9 @@ public class OpenLoginModule extends Abs
     public boolean abort() throws LoginException {
         return true;
     }
+
+    @Override
+    public boolean logout() throws LoginException {
+        return true;
+    }
 }



Mime
View raw message