You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by er...@apache.org on 2004/11/02 08:10:32 UTC
svn commit: rev 56362 - incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/changepw/value
Author: erodriguez
Date: Mon Nov 1 23:10:31 2004
New Revision: 56362
Added:
incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/changepw/value/
incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/changepw/value/ChangePasswordData.java
incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/changepw/value/ChangePasswordDataModifier.java
Log:
One new value object for the changepw service, the password to be changed and the target principal.
Added: incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/changepw/value/ChangePasswordData.java
==============================================================================
--- (empty file)
+++ incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/changepw/value/ChangePasswordData.java Mon Nov 1 23:10:31 2004
@@ -0,0 +1,43 @@
+/*
+ * 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.value;
+
+import org.apache.kerberos.messages.value.*;
+
+public class ChangePasswordData {
+
+ private byte[] _newPassword;
+ private PrincipalName _targetName;
+ private String _targetRealm;
+
+ public ChangePasswordData(byte[] password, PrincipalName name, String realm) {
+ _newPassword = password;
+ _targetName = name;
+ _targetRealm = realm;
+ }
+
+ public byte[] getNewPassword() {
+ return _newPassword;
+ }
+ public PrincipalName getTargetName() {
+ return _targetName;
+ }
+ public String getTargetRealm() {
+ return _targetRealm;
+ }
+}
+
Added: incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/changepw/value/ChangePasswordDataModifier.java
==============================================================================
--- (empty file)
+++ incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/changepw/value/ChangePasswordDataModifier.java Mon Nov 1 23:10:31 2004
@@ -0,0 +1,41 @@
+/*
+ * 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.value;
+
+import org.apache.kerberos.messages.value.*;
+
+public class ChangePasswordDataModifier {
+
+ private byte[] _newPassword;
+ private PrincipalName _targetName;
+ private String _targetRealm;
+
+ public ChangePasswordData getChangePasswdData() {
+ return new ChangePasswordData(_newPassword, _targetName, _targetRealm);
+ }
+
+ public void setNewPassword(byte[] password) {
+ _newPassword = password;
+ }
+ public void setTargetName(PrincipalName name) {
+ _targetName = name;
+ }
+ public void setTargetRealm(String realm) {
+ _targetRealm = realm;
+ }
+}
+