Author: erodriguez
Date: Wed Nov  3 09:26:39 2004
New Revision: 56496

Added:
   
incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/changepw/ChangePasswordException.java
Log:
Exceptions for the change password service.

Added: 
incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/changepw/ChangePasswordException.java
==============================================================================
--- (empty file)
+++ 
incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/changepw/ChangePasswordException.java
    Wed Nov  3 09:26:39 2004
@@ -0,0 +1,44 @@
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.kerberos.changepw;
+
+import org.apache.kerberos.kdc.*;
+
+public class ChangePasswordException extends KerberosException {
+
+       public static final ChangePasswordException KRB5_KPASSWD_MALFORMED = 
new ChangePasswordException(1,
+                       "Request failed due to being malformed.");
+       public static final ChangePasswordException KRB5_KPASSWD_HARDERROR = 
new ChangePasswordException(2,
+                       "Request failed due to a hard error in processing the 
request.");
+       public static final ChangePasswordException KRB5_KPASSWD_AUTHERROR = 
new ChangePasswordException(3,
+                       "Request failed due to an error in authentication 
processing.");
+       public static final ChangePasswordException KRB5_KPASSWD_SOFTERROR = 
new ChangePasswordException(4,
+                       "Request failed due to a soft error in processing the 
request.");
+       public static final ChangePasswordException KRB5_KPASSWD_ACCESSDENIED = 
new ChangePasswordException(5,
+                       "Requestor not authorized.");
+       public static final ChangePasswordException KRB5_KPASSWD_BAD_VERSION = 
new ChangePasswordException(6,
+                       "Protocol version unsupported.");
+       public static final ChangePasswordException 
KRB5_KPASSWD_INITIAL_FLAG_NEEDED = new ChangePasswordException(7,
+                       "Initial flag required.");
+       public static final ChangePasswordException KRB5_KPASSWD_UNKNOWN_ERROR 
= new ChangePasswordException(8,
+                       "Request failed for an unknown reason.");
+
+       protected ChangePasswordException(int ordinal, String name) {
+               super(ordinal, name);
+       }
+}
+

Reply via email to