[jboss-cvs] JBossAS SVN: r64092 - projects/javaee/trunk/jboss-jaspi-api/src/main/javax/security/auth/message.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jul 17 02:06:11 EDT 2007


Author: anil.saldhana at jboss.com
Date: 2007-07-17 02:06:10 -0400 (Tue, 17 Jul 2007)
New Revision: 64092

Modified:
   projects/javaee/trunk/jboss-jaspi-api/src/main/javax/security/auth/message/AuthStatus.java
Log:
fix AuthStatus values

Modified: projects/javaee/trunk/jboss-jaspi-api/src/main/javax/security/auth/message/AuthStatus.java
===================================================================
--- projects/javaee/trunk/jboss-jaspi-api/src/main/javax/security/auth/message/AuthStatus.java	2007-07-17 04:30:55 UTC (rev 64091)
+++ projects/javaee/trunk/jboss-jaspi-api/src/main/javax/security/auth/message/AuthStatus.java	2007-07-17 06:06:10 UTC (rev 64092)
@@ -34,23 +34,41 @@
 public class AuthStatus
 { 
    /**
-    * Indicates that the processing of the message by the 
-    * authentication module resulted in an error
+    * Indicates that the message processing by the authentication module 
+    * was NOT successful, and that the module replaced the application 
+    * message with an error message.
     */
-   public static final AuthStatus FAIL = new AuthStatus(-1);
+   public static final AuthStatus FAILURE = new AuthStatus(-1); 
    
    /**
-    * Indicates that the message processing runtime is to 
-    * continue with its normal processing of the message exchange.
+    * Indicates the message processing by the authentication module is 
+    * NOT complete, that the module replaced the application message 
+    * with a security message, and that the runtime is to proceed by 
+    * sending the security message.
     */
-   public static final AuthStatus PROCEED = new AuthStatus(1);
+   public static final AuthStatus SEND_CONTINUE = new AuthStatus(3);
    
    /**
-    * Indicates that the message processing runtime is to repeat 
-    * its processing of the message exchange.
+    * Indicates that the message processing by the authentication module
+    * was NOT successful, that the module replaced the application message 
+    * with an error message, and that the runtime is to proceed by sending 
+    * the error message.
     */
-   public static final AuthStatus RETRY =  new AuthStatus(0);
+   public static final AuthStatus SEND_FAILURE =  new AuthStatus(-2);
    
+   /** Indicates that the message processing by the authentication module 
+    * was successful and that the runtime is to proceed by sending a message 
+    * returned by the authentication module.
+   */
+   public static final AuthStatus SEND_SUCCESS = new AuthStatus(2);
+   
+   /**
+    * Indicates that the message processing by the authentication module 
+    * was successful and that the runtime is to proceed with its normal processing 
+    * of the resulting message.
+    */
+   public static final AuthStatus SUCCESS = new AuthStatus(1);
+   
    private int status = -1; 
    private AuthStatus(int status)
    {




More information about the jboss-cvs-commits mailing list