aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/org/ietf/jgss/GSSException.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/org/ietf/jgss/GSSException.java')
-rw-r--r--libjava/classpath/org/ietf/jgss/GSSException.java47
1 files changed, 30 insertions, 17 deletions
diff --git a/libjava/classpath/org/ietf/jgss/GSSException.java b/libjava/classpath/org/ietf/jgss/GSSException.java
index 5443f766cfe..9c352e3e937 100644
--- a/libjava/classpath/org/ietf/jgss/GSSException.java
+++ b/libjava/classpath/org/ietf/jgss/GSSException.java
@@ -1,5 +1,5 @@
/* GSSException.java -- a general exception in GSS.
- Copyright (C) 2004 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -79,6 +79,9 @@ import java.util.ResourceBundle;
* the caller, this class performs the mapping from their numeric values
* to textual representations. All Java GSS-API methods are declared
* throwing this exception.
+ *
+ * @specnote Some of the constant values defined in this class were
+ * chosen to be compatible with J2SE 1.4, and not with RFC 2853.
*/
public class GSSException extends Exception
{
@@ -90,28 +93,29 @@ public class GSSException extends Exception
// Constants and fields.
// -------------------------------------------------------------------------
- // 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.
-
/**
* Channel bindings mismatch error.
+ * @specnote Should be 4 according to RFC 2853.
*/
- public static final int BAD_BINDINGS = 4;
+ public static final int BAD_BINDINGS = 1;
/**
* Unsupported mechanism requested error.
+ * @specnote Should be 1 according to RFC 2853.
*/
- public static final int BAD_MECH = 1;
+ public static final int BAD_MECH = 2;
/**
* Invalid name provided error.
+ * @specnote Should be 2 according to RFC 2853.
*/
- public static final int BAD_NAME = 2;
+ public static final int BAD_NAME = 3;
/**
* Name of unsupported type provided error.
+ * @specnote Should be 3 according to RFC 2853.
*/
- public static final int BAD_NAMETYPE = 3;
+ public static final int BAD_NAMETYPE = 4;
/**
* Invalid status code error - this is the default status value.
@@ -125,38 +129,45 @@ public class GSSException extends Exception
/**
* Specified security context expired error.
+ * @specnote Should be 12 according to RFC 2853.
*/
- public static final int CONTEXT_EXPIRED = 12;
+ public static final int CONTEXT_EXPIRED = 7;
/**
* Expired credentials detected error.
+ * @specnote Should be 11 according to RFC 2853.
*/
- public static final int CREDENTIALS_EXPIRED = 11;
+ public static final int CREDENTIALS_EXPIRED = 8;
/**
* Defective credential error.
+ * @specnote Should be 10 according to RFC 2853.
*/
- public static final int DEFECTIVE_CREDENTIAL = 10;
+ public static final int DEFECTIVE_CREDENTIAL = 9;
/**
* Defective token error.
+ * @specnote Should be 9 according to RFC 2853.
*/
- public static final int DEFECTIVE_TOKEN = 9;
+ public static final int DEFECTIVE_TOKEN = 10;
/**
* General failure, unspecified at GSS-API level.
+ * @specnote Should be 13 according to RFC 2853.
*/
- public static final int FAILURE = 13;
+ public static final int FAILURE = 11;
/**
* Invalid security context error.
+ * @specnote Should be 8 according to RFC 2853.
*/
- public static final int NO_CONTEXT = 8;
+ public static final int NO_CONTEXT = 12;
/**
* Invalid credentials error.
+ * @specnote Should be 7 according to RFC 2853.
*/
- public static final int NO_CRED = 7;
+ public static final int NO_CRED = 13;
/**
* Unsupported QOP value error.
@@ -188,16 +199,18 @@ public class GSSException extends Exception
* code that may occur during context establishment. It is not used to
* indicate supplementary status values. The MessageProp object is used
* for that purpose.
+ * @specnote Should be 20 according to RFC 2853.
*/
- public static final int DUPLICATE_TOKEN = 20;
+ public static final int DUPLICATE_TOKEN = 19;
/**
* The token's validity period has expired. This is a fatal error code
* that may occur during context establishment. It is not used to
* indicate supplementary status values. The MessageProp object is used
* for that purpose.
+ * @specnote Should be 19 according to RFC 2853.
*/
- public static final int OLD_TOKEN = 19;
+ public static final int OLD_TOKEN = 20;
/**
* A later token has already been processed. This is a fatal error code