All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.security.auth.message.AuthStatus Maven / Gradle / Ivy

The newest version!
package javax.security.auth.message;

//$Id$

/**
 *  

The AuthStatus class is used to represent return values from * Authentication modules.

* @author Anil Saldhana * @author Charlie Lai, Ron Monzillo (Javadoc for JSR-196) * @since May 11, 2006 * @version $Revision$ */ public class AuthStatus { /** * 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 FAILURE = new AuthStatus(-1); /** * 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 SEND_CONTINUE = new AuthStatus(3); /** * 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 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) { this.status = status; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy