]> source.dussan.org Git - archiva.git/commitdiff
package move to o.a.a.r module redback-authentication-open
authorOlivier Lamy <olamy@apache.org>
Sat, 7 Apr 2012 20:41:57 +0000 (20:41 +0000)
committerOlivier Lamy <olamy@apache.org>
Sat, 7 Apr 2012 20:41:57 +0000 (20:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1310860 13f79535-47bb-0310-9956-ffa450edef68

redback-authentication/redback-authentication-providers/redback-authentication-open/src/main/java/org/apache/archiva/redback/authentication/open/OpenAuthenticator.java [new file with mode: 0644]
redback-authentication/redback-authentication-providers/redback-authentication-open/src/main/java/org/codehaus/plexus/redback/authentication/open/OpenAuthenticator.java [deleted file]
redback-authentication/redback-authentication-providers/redback-authentication-open/src/main/resources/META-INF/spring-context.xml

diff --git a/redback-authentication/redback-authentication-providers/redback-authentication-open/src/main/java/org/apache/archiva/redback/authentication/open/OpenAuthenticator.java b/redback-authentication/redback-authentication-providers/redback-authentication-open/src/main/java/org/apache/archiva/redback/authentication/open/OpenAuthenticator.java
new file mode 100644 (file)
index 0000000..17d51cd
--- /dev/null
@@ -0,0 +1,59 @@
+package org.apache.archiva.redback.authentication.open;
+
+/*
+ * 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.
+ */
+
+import org.apache.archiva.redback.authentication.AuthenticationDataSource;
+import org.apache.archiva.redback.authentication.AuthenticationException;
+import org.apache.archiva.redback.authentication.AuthenticationResult;
+import org.apache.archiva.redback.authentication.Authenticator;
+import org.apache.archiva.redback.authentication.PasswordBasedAuthenticationDataSource;
+import org.codehaus.plexus.redback.policy.AccountLockedException;
+import org.springframework.stereotype.Service;
+
+/**
+ * OpenAuthenticator - Does not test user / password.
+ * All attempts result in access. 
+ *
+ * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
+ * @version $Id$
+ * 
+ */
+@Service("authenticator#open")
+public class OpenAuthenticator
+    implements Authenticator
+{
+
+    public AuthenticationResult authenticate( AuthenticationDataSource s )
+        throws AccountLockedException, AuthenticationException
+    {
+        PasswordBasedAuthenticationDataSource source = (PasswordBasedAuthenticationDataSource) s;
+        return new AuthenticationResult( true, source.getPrincipal(), null );
+    }
+
+    public String getId()
+    {
+        return "Open Authenticator";
+    }
+
+    public boolean supportsDataSource( AuthenticationDataSource source )
+    {
+        return ( source instanceof PasswordBasedAuthenticationDataSource );
+    }
+}
diff --git a/redback-authentication/redback-authentication-providers/redback-authentication-open/src/main/java/org/codehaus/plexus/redback/authentication/open/OpenAuthenticator.java b/redback-authentication/redback-authentication-providers/redback-authentication-open/src/main/java/org/codehaus/plexus/redback/authentication/open/OpenAuthenticator.java
deleted file mode 100644 (file)
index 1e39ed1..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-package org.codehaus.plexus.redback.authentication.open;
-
-/*
- * 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.
- */
-
-import org.apache.archiva.redback.authentication.AuthenticationDataSource;
-import org.apache.archiva.redback.authentication.AuthenticationException;
-import org.apache.archiva.redback.authentication.AuthenticationResult;
-import org.apache.archiva.redback.authentication.Authenticator;
-import org.apache.archiva.redback.authentication.PasswordBasedAuthenticationDataSource;
-import org.codehaus.plexus.redback.policy.AccountLockedException;
-import org.springframework.stereotype.Service;
-
-/**
- * OpenAuthenticator - Does not test user / password.
- * All attempts result in access. 
- *
- * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
- * @version $Id$
- * 
- */
-@Service("authenticator#open")
-public class OpenAuthenticator
-    implements Authenticator
-{
-
-    public AuthenticationResult authenticate( AuthenticationDataSource s )
-        throws AccountLockedException, AuthenticationException
-    {
-        PasswordBasedAuthenticationDataSource source = (PasswordBasedAuthenticationDataSource) s;
-        return new AuthenticationResult( true, source.getPrincipal(), null );
-    }
-
-    public String getId()
-    {
-        return "Open Authenticator";
-    }
-
-    public boolean supportsDataSource( AuthenticationDataSource source )
-    {
-        return ( source instanceof PasswordBasedAuthenticationDataSource );
-    }
-}
index 5e514177de022251ebf4f8d411cc794b672dcdde..08c59e526ca91a2ba227470171b34df3eda4d02c 100644 (file)
@@ -29,6 +29,6 @@
 
   <context:annotation-config />
   <context:component-scan 
-    base-package="org.codehaus.plexus.redback.authentication.open"/>
+    base-package="org.apache.archiva.redback.authentication.open"/>
  
 </beans>
\ No newline at end of file