You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by aj...@apache.org on 2008/04/01 05:47:55 UTC

svn commit: r643262 - /incubator/jspwiki/trunk/tests/com/ecyrd/jspwiki/TestAuthorizer.java

Author: ajaquith
Date: Mon Mar 31 20:47:54 2008
New Revision: 643262

URL: http://svn.apache.org/viewvc?rev=643262&view=rev
Log:
Re-factored the authentication subsystem to remove the need for JAAS configuration files. WEB-INF/jspwiki.jaas goes away, as does the need for PolicyLoader. Also, responsibilities for web authentication move to WikiServletFilter. Authentication is now configured via jspwiki.properties -- see that file for details. WikiSession API change: getLoginContext() vanishes.

Modified:
    incubator/jspwiki/trunk/tests/com/ecyrd/jspwiki/TestAuthorizer.java

Modified: incubator/jspwiki/trunk/tests/com/ecyrd/jspwiki/TestAuthorizer.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/tests/com/ecyrd/jspwiki/TestAuthorizer.java?rev=643262&r1=643261&r2=643262&view=diff
==============================================================================
--- incubator/jspwiki/trunk/tests/com/ecyrd/jspwiki/TestAuthorizer.java (original)
+++ incubator/jspwiki/trunk/tests/com/ecyrd/jspwiki/TestAuthorizer.java Mon Mar 31 20:47:54 2008
@@ -1,6 +1,22 @@
 /*
- * (C) Janne Jalkanen 2005
- * 
+    JSPWiki - a JSP-based WikiWiki clone.
+
+    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 com.ecyrd.jspwiki;
 
@@ -50,7 +66,7 @@
      */
     public Principal[] getRoles()
     {
-        return (Principal[])m_roles.clone();
+        return m_roles;
     }
     
     /**