Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/src/java.security.sasl/share/classes/javax/security/sasl/AuthenticationException.java
41159 views
1
/*
2
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License version 2 only, as
7
* published by the Free Software Foundation. Oracle designates this
8
* particular file as subject to the "Classpath" exception as provided
9
* by Oracle in the LICENSE file that accompanied this code.
10
*
11
* This code is distributed in the hope that it will be useful, but WITHOUT
12
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14
* version 2 for more details (a copy is included in the LICENSE file that
15
* accompanied this code).
16
*
17
* You should have received a copy of the GNU General Public License version
18
* 2 along with this work; if not, write to the Free Software Foundation,
19
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20
*
21
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22
* or visit www.oracle.com if you need additional information or have any
23
* questions.
24
*/
25
26
package javax.security.sasl;
27
28
/**
29
* This exception is thrown by a SASL mechanism implementation
30
* to indicate that the SASL
31
* exchange has failed due to reasons related to authentication, such as
32
* an invalid identity, passphrase, or key.
33
* <p>
34
* Note that the lack of an AuthenticationException does not mean that
35
* the failure was not due to an authentication error. A SASL mechanism
36
* implementation might throw the more general SaslException instead of
37
* AuthenticationException if it is unable to determine the nature
38
* of the failure, or if does not want to disclose the nature of
39
* the failure, for example, due to security reasons.
40
*
41
* @since 1.5
42
*
43
* @author Rosanna Lee
44
* @author Rob Weltman
45
*/
46
public class AuthenticationException extends SaslException {
47
/**
48
* Constructs a new instance of {@code AuthenticationException}.
49
* The root exception and the detailed message are null.
50
*/
51
public AuthenticationException () {
52
super();
53
}
54
55
/**
56
* Constructs a new instance of {@code AuthenticationException}
57
* with a detailed message.
58
* The root exception is null.
59
* @param detail A possibly null string containing details of the exception.
60
*
61
* @see java.lang.Throwable#getMessage
62
*/
63
public AuthenticationException (String detail) {
64
super(detail);
65
}
66
67
/**
68
* Constructs a new instance of {@code AuthenticationException} with a detailed message
69
* and a root exception.
70
*
71
* @param detail A possibly null string containing details of the exception.
72
* @param ex A possibly null root exception that caused this exception.
73
*
74
* @see java.lang.Throwable#getMessage
75
* @see #getCause
76
*/
77
public AuthenticationException (String detail, Throwable ex) {
78
super(detail, ex);
79
}
80
81
/** Use serialVersionUID from JSR 28 RI for interoperability */
82
private static final long serialVersionUID = -3579708765071815007L;
83
}
84
85