1 |
/* GSSException.java -- a general exception in GSS. |
/* GSSException.java -- a general exception in GSS. |
2 |
Copyright (C) 2004 Free Software Foundation, Inc. |
Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
79 |
* the caller, this class performs the mapping from their numeric values |
* the caller, this class performs the mapping from their numeric values |
80 |
* to textual representations. All Java GSS-API methods are declared |
* to textual representations. All Java GSS-API methods are declared |
81 |
* throwing this exception. |
* throwing this exception. |
82 |
|
* |
83 |
|
* @specnote Some of the constant values defined in this class were |
84 |
|
* chosen to be compatible with J2SE 1.4, and not with RFC 2853. |
85 |
*/ |
*/ |
86 |
public class GSSException extends Exception |
public class GSSException extends Exception |
87 |
{ |
{ |
93 |
// Constants and fields. |
// Constants and fields. |
94 |
// ------------------------------------------------------------------------- |
// ------------------------------------------------------------------------- |
95 |
|
|
|
// These values do not jive with the "Constant Field Values" in the J2SE |
|
|
// 1.4.1, but do follow RFC 2853. I trust the IETF, but not Sun. |
|
|
|
|
96 |
/** |
/** |
97 |
* Channel bindings mismatch error. |
* Channel bindings mismatch error. |
98 |
|
* @specnote Should be 4 according to RFC 2853. |
99 |
*/ |
*/ |
100 |
public static final int BAD_BINDINGS = 4; |
public static final int BAD_BINDINGS = 1; |
101 |
|
|
102 |
/** |
/** |
103 |
* Unsupported mechanism requested error. |
* Unsupported mechanism requested error. |
104 |
|
* @specnote Should be 1 according to RFC 2853. |
105 |
*/ |
*/ |
106 |
public static final int BAD_MECH = 1; |
public static final int BAD_MECH = 2; |
107 |
|
|
108 |
/** |
/** |
109 |
* Invalid name provided error. |
* Invalid name provided error. |
110 |
|
* @specnote Should be 2 according to RFC 2853. |
111 |
*/ |
*/ |
112 |
public static final int BAD_NAME = 2; |
public static final int BAD_NAME = 3; |
113 |
|
|
114 |
/** |
/** |
115 |
* Name of unsupported type provided error. |
* Name of unsupported type provided error. |
116 |
|
* @specnote Should be 3 according to RFC 2853. |
117 |
*/ |
*/ |
118 |
public static final int BAD_NAMETYPE = 3; |
public static final int BAD_NAMETYPE = 4; |
119 |
|
|
120 |
/** |
/** |
121 |
* Invalid status code error - this is the default status value. |
* Invalid status code error - this is the default status value. |
129 |
|
|
130 |
/** |
/** |
131 |
* Specified security context expired error. |
* Specified security context expired error. |
132 |
|
* @specnote Should be 12 according to RFC 2853. |
133 |
*/ |
*/ |
134 |
public static final int CONTEXT_EXPIRED = 12; |
public static final int CONTEXT_EXPIRED = 7; |
135 |
|
|
136 |
/** |
/** |
137 |
* Expired credentials detected error. |
* Expired credentials detected error. |
138 |
|
* @specnote Should be 11 according to RFC 2853. |
139 |
*/ |
*/ |
140 |
public static final int CREDENTIALS_EXPIRED = 11; |
public static final int CREDENTIALS_EXPIRED = 8; |
141 |
|
|
142 |
/** |
/** |
143 |
* Defective credential error. |
* Defective credential error. |
144 |
|
* @specnote Should be 10 according to RFC 2853. |
145 |
*/ |
*/ |
146 |
public static final int DEFECTIVE_CREDENTIAL = 10; |
public static final int DEFECTIVE_CREDENTIAL = 9; |
147 |
|
|
148 |
/** |
/** |
149 |
* Defective token error. |
* Defective token error. |
150 |
|
* @specnote Should be 9 according to RFC 2853. |
151 |
*/ |
*/ |
152 |
public static final int DEFECTIVE_TOKEN = 9; |
public static final int DEFECTIVE_TOKEN = 10; |
153 |
|
|
154 |
/** |
/** |
155 |
* General failure, unspecified at GSS-API level. |
* General failure, unspecified at GSS-API level. |
156 |
|
* @specnote Should be 13 according to RFC 2853. |
157 |
*/ |
*/ |
158 |
public static final int FAILURE = 13; |
public static final int FAILURE = 11; |
159 |
|
|
160 |
/** |
/** |
161 |
* Invalid security context error. |
* Invalid security context error. |
162 |
|
* @specnote Should be 8 according to RFC 2853. |
163 |
*/ |
*/ |
164 |
public static final int NO_CONTEXT = 8; |
public static final int NO_CONTEXT = 12; |
165 |
|
|
166 |
/** |
/** |
167 |
* Invalid credentials error. |
* Invalid credentials error. |
168 |
|
* @specnote Should be 7 according to RFC 2853. |
169 |
*/ |
*/ |
170 |
public static final int NO_CRED = 7; |
public static final int NO_CRED = 13; |
171 |
|
|
172 |
/** |
/** |
173 |
* Unsupported QOP value error. |
* Unsupported QOP value error. |
199 |
* code that may occur during context establishment. It is not used to |
* code that may occur during context establishment. It is not used to |
200 |
* indicate supplementary status values. The MessageProp object is used |
* indicate supplementary status values. The MessageProp object is used |
201 |
* for that purpose. |
* for that purpose. |
202 |
|
* @specnote Should be 20 according to RFC 2853. |
203 |
*/ |
*/ |
204 |
public static final int DUPLICATE_TOKEN = 20; |
public static final int DUPLICATE_TOKEN = 19; |
205 |
|
|
206 |
/** |
/** |
207 |
* The token's validity period has expired. This is a fatal error code |
* The token's validity period has expired. This is a fatal error code |
208 |
* that may occur during context establishment. It is not used to |
* that may occur during context establishment. It is not used to |
209 |
* indicate supplementary status values. The MessageProp object is used |
* indicate supplementary status values. The MessageProp object is used |
210 |
* for that purpose. |
* for that purpose. |
211 |
|
* @specnote Should be 19 according to RFC 2853. |
212 |
*/ |
*/ |
213 |
public static final int OLD_TOKEN = 19; |
public static final int OLD_TOKEN = 20; |
214 |
|
|
215 |
/** |
/** |
216 |
* A later token has already been processed. This is a fatal error code |
* A later token has already been processed. This is a fatal error code |