dlestrat    2004/10/03 17:14:36

  Modified:    components/security/src/java/org/apache/jetspeed/security
                        AuthenticationProvider.java SecurityProvider.java
  Added:       components/security/src/java/org/apache/jetspeed/security
                        UserSecurityProvider.java
                        AuthorizationProvider.java LoginModuleProxy.java
  Log:
  http://nagoya.apache.org/jira/browse/JS2-133
  
  Revision  Changes    Path
  1.2       +12 -5     
jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/AuthenticationProvider.java
  
  Index: AuthenticationProvider.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/AuthenticationProvider.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AuthenticationProvider.java       18 Sep 2004 19:33:35 -0000      1.1
  +++ AuthenticationProvider.java       4 Oct 2004 00:14:36 -0000       1.2
  @@ -14,16 +14,23 @@
    */
   package org.apache.jetspeed.security;
   
  +import java.util.List;
  +
   /**
  - * <p>Utility component used as a bridge between the login module and the security 
component.</p>
  + * <p>
  + * Configures the login modules.
  + * </p>
    * 
  - * @author <a href="mailto:[EMAIL PROTECTED]">David Le Strat</a>
  + * @author <a href="mailto:[EMAIL PROTECTED]">David Le Strat </a>
    */
   public interface AuthenticationProvider
   {
       /**
  -     * <p>Getter for the [EMAIL PROTECTED] UserManager}.</p>
  +     * <p>
  +     * Getter for the login modules.
  +     * </p>
  +     * 
        * @return The UserManager.
        */
  -    UserManager getUserManager();
  -}
  +    List getLoginModules();
  +}
  \ No newline at end of file
  
  
  
  1.5       +3 -4      
jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/SecurityProvider.java
  
  Index: SecurityProvider.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/SecurityProvider.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SecurityProvider.java     19 Sep 2004 19:04:12 -0000      1.4
  +++ SecurityProvider.java     4 Oct 2004 00:14:36 -0000       1.5
  @@ -18,7 +18,6 @@
   import org.apache.jetspeed.security.spi.GroupSecurityHandler;
   import org.apache.jetspeed.security.spi.RoleSecurityHandler;
   import org.apache.jetspeed.security.spi.SecurityMappingHandler;
  -import org.apache.jetspeed.security.spi.UserSecurityHandler;
   
   /**
    * <p>
  @@ -32,12 +31,12 @@
   {
       /**
        * <p>
  -     * Getter for the [EMAIL PROTECTED] UserSecurityHandler}
  +     * Getter for the [EMAIL PROTECTED] UserSecurityProvider}
        * </p>
        * 
  -     * @return The UserSecurityHandler.
  +     * @return The [EMAIL PROTECTED] UserSecurityProvider}.
        */
  -    UserSecurityHandler getUserSecurityHandler();
  +    UserSecurityProvider getUserSecurityProvider();
   
       /**
        * <p>
  
  
  
  1.1                  
jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/UserSecurityProvider.java
  
  Index: UserSecurityProvider.java
  ===================================================================
  /* Copyright 2004 Apache Software Foundation
  *
  * Licensed 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.jetspeed.security;
  
  import java.util.List;
  
  import org.apache.jetspeed.security.spi.UserSecurityHandler;
  
  /**
   * <p>
   * This provide an aggregate interface for mulitple [EMAIL PROTECTED] 
UserSecurityHandler}.
   * </p>
   * 
   * @author <a href="mailto:[EMAIL PROTECTED]">David Le Strat </a>
   */
  public interface UserSecurityProvider extends UserSecurityHandler
  {
      /**
       * <p>
       * Gets all the user security handlers configures.
       * </p>
       * 
       * @return The list of [EMAIL PROTECTED] UserSecurityHandler}.
       */
      List getUserSecurityHandlers();
  
  }
  
  
  
  1.1                  
jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/AuthorizationProvider.java
  
  Index: AuthorizationProvider.java
  ===================================================================
  /* Copyright 2004 Apache Software Foundation
  *
  * Licensed 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.jetspeed.security;
  
  import java.util.List;
  
  /**
   * <p>
   * Configures the policies.
   * </p>
   * 
   * @author <a href="mailto:[EMAIL PROTECTED]">David Le Strat </a>
   */
  public interface AuthorizationProvider
  {
      /**
       * <p>
       * The list of configured policies.
       * </p>
       * 
       * @return The list of policies.
       */
      List getPolicies();
  }
  
  
  
  1.1                  
jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/LoginModuleProxy.java
  
  Index: LoginModuleProxy.java
  ===================================================================
  /* Copyright 2004 Apache Software Foundation
  *
  * Licensed 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.jetspeed.security;
  
  /**
   * <p>Utility component used as a bridge between the login module and the security 
component.</p>
   * 
   * @author <a href="mailto:[EMAIL PROTECTED]">David Le Strat</a>
   */
  public interface LoginModuleProxy
  {
      /**
       * <p>Getter for the [EMAIL PROTECTED] UserManager}.</p>
       * @return The UserManager.
       */
      UserManager getUserManager();
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to