KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > security > sasl > AuthenticationException


1 /*
2  * @(#)AuthenticationException.java 1.4 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package javax.security.sasl;
9
10 /**
11  * This exception is thrown by a SASL mechanism implementation
12  * to indicate that the SASL
13  * exchange has failed due to reasons related to authentication, such as
14  * an invalid identity, passphrase, or key.
15  * <p>
16  * Note that the lack of an AuthenticationException does not mean that
17  * the failure was not due to an authentication error. A SASL mechanism
18  * implementation might throw the more general SaslException instead of
19  * AuthenticationException if it is unable to determine the nature
20  * of the failure, or if does not want to disclose the nature of
21  * the failure, for example, due to security reasons.
22  *
23  * @since 1.5
24  *
25  * @author Rosanna Lee
26  * @author Rob Weltman
27  */

28 public class AuthenticationException extends SaslException JavaDoc {
29     /**
30      * Constructs a new instance of <tt>AuthenticationException</tt>.
31      * The root exception and the detailed message are null.
32      */

33     public AuthenticationException () {
34     super();
35     }
36
37     /**
38      * Constructs a new instance of <tt>AuthenticationException</tt>
39      * with a detailed message.
40      * The root exception is null.
41      * @param detail A possibly null string containing details of the exception.
42      *
43      * @see java.lang.Throwable#getMessage
44      */

45     public AuthenticationException (String JavaDoc detail) {
46     super(detail);
47     }
48
49     /**
50      * Constructs a new instance of <tt>AuthenticationException</tt> with a detailed message
51      * and a root exception.
52      *
53      * @param detail A possibly null string containing details of the exception.
54      * @param ex A possibly null root exception that caused this exception.
55      *
56      * @see java.lang.Throwable#getMessage
57      * @see #getCause
58      */

59     public AuthenticationException (String JavaDoc detail, Throwable JavaDoc ex) {
60     super(detail, ex);
61     }
62
63     /** Use serialVersionUID from JSR 28 RI for interoperability */
64     private static final long serialVersionUID = -3579708765071815007L;
65 }
66
Popular Tags