[jboss-cvs] jboss-seam/src/main/org/jboss/seam/security ...

Shane Bryzak Shane_Bryzak at symantec.com
Wed Aug 23 20:07:23 EDT 2006


  User: sbryzak2
  Date: 06/08/23 20:07:23

  Modified:    src/main/org/jboss/seam/security   Authentication.java
                        AuthenticationException.java
  Log:
  Fixed to work in debug mode
  
  Revision  Changes    Path
  1.4       +4 -4      jboss-seam/src/main/org/jboss/seam/security/Authentication.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Authentication.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/security/Authentication.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- Authentication.java	5 Aug 2006 01:57:53 -0000	1.3
  +++ Authentication.java	24 Aug 2006 00:07:23 -0000	1.4
  @@ -2,13 +2,13 @@
   
   import java.io.Serializable;
   import java.security.Principal;
  -import java.security.acl.Acl;
  -import org.jboss.seam.contexts.Contexts;
  +
  +import static org.jboss.seam.ScopeType.SESSION;
   import org.jboss.seam.Component;
   import org.jboss.seam.ScopeType;
   import org.jboss.seam.annotations.Name;
   import org.jboss.seam.annotations.Scope;
  -import static org.jboss.seam.ScopeType.SESSION;
  +import org.jboss.seam.contexts.Contexts;
   
   /**
    * An Authentication represents either a login token or an authenticated Principal.
  @@ -32,7 +32,7 @@
   
       if (instance==null)
       {
  -      throw new IllegalStateException(
  +      throw new AuthenticationException(
             "No Authentication could be created, make sure the Component exists in session scope");
       }
   
  
  
  
  1.4       +4 -1      jboss-seam/src/main/org/jboss/seam/security/AuthenticationException.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: AuthenticationException.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/security/AuthenticationException.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- AuthenticationException.java	1 Aug 2006 05:03:33 -0000	1.3
  +++ AuthenticationException.java	24 Aug 2006 00:07:23 -0000	1.4
  @@ -1,11 +1,14 @@
   package org.jboss.seam.security;
   
  +import javax.ejb.ApplicationException;
  +
   /**
    * <p> </p>
    *
    * @author Shane Bryzak
    */
  -public class AuthenticationException extends Exception
  + at ApplicationException
  +public class AuthenticationException extends RuntimeException
   {
     public AuthenticationException()
     {
  
  
  



More information about the jboss-cvs-commits mailing list