directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: rev 56493 - incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/changepw/messages
Date Wed, 03 Nov 2004 17:22:36 GMT
Author: erodriguez
Date: Wed Nov  3 09:22:34 2004
New Revision: 56493

Added:
   incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/changepw/messages/ChangePasswordError.java
   incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/changepw/messages/ChangePasswordErrorModifier.java
Log:
Error message infrastructure for change password protocol error handling.

Added: incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/changepw/messages/ChangePasswordError.java
==============================================================================
--- (empty file)
+++ incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/changepw/messages/ChangePasswordError.java
Wed Nov  3 09:22:34 2004
@@ -0,0 +1,37 @@
+/*
+ *   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.messages;
+
+import org.apache.kerberos.messages.*;
+
+public class ChangePasswordError extends AbstractPasswordMessage {
+	
+	private ErrorMessage _errorMessage;
+	
+	public ChangePasswordError(short messageLength, short versionNumber, short authHeaderLength,
+			ErrorMessage errorMessage) {
+		
+		super(messageLength, versionNumber, authHeaderLength);
+		
+		_errorMessage = errorMessage;
+	}
+	
+	public ErrorMessage getErrorMessage() {
+		return _errorMessage;
+	}
+}
+

Added: incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/changepw/messages/ChangePasswordErrorModifier.java
==============================================================================
--- (empty file)
+++ incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/changepw/messages/ChangePasswordErrorModifier.java
Wed Nov  3 09:22:34 2004
@@ -0,0 +1,35 @@
+/*
+ *   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.messages;
+
+import org.apache.kerberos.messages.*;
+
+public class ChangePasswordErrorModifier extends AbstractPasswordMessageModifier {
+	
+	private ErrorMessage _errorMessage;
+	
+	public ChangePasswordError getChangePasswordError() {
+		
+		return new ChangePasswordError(_messageLength, _protocolVersionNumber,
+			_authHeaderLength, _errorMessage);
+	}
+	
+	public void setErrorMessage(ErrorMessage errorMessage) {
+		_errorMessage = errorMessage;
+	}
+}
+

Mime
View raw message