Return-Path: Delivered-To: apmail-incubator-directory-cvs-archive@www.apache.org Received: (qmail 38641 invoked from network); 2 Nov 2004 07:10:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Nov 2004 07:10:35 -0000 Received: (qmail 42525 invoked by uid 500); 2 Nov 2004 07:10:34 -0000 Delivered-To: apmail-incubator-directory-cvs-archive@incubator.apache.org Received: (qmail 42474 invoked by uid 500); 2 Nov 2004 07:10:33 -0000 Mailing-List: contact directory-cvs-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: directory-dev@incubator.apache.org Delivered-To: mailing list directory-cvs@incubator.apache.org Received: (qmail 42460 invoked by uid 99); 2 Nov 2004 07:10:33 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 01 Nov 2004 23:10:33 -0800 Received: (qmail 38579 invoked by uid 65534); 2 Nov 2004 07:10:32 -0000 Date: 2 Nov 2004 07:10:32 -0000 Message-ID: <20041102071032.38575.qmail@minotaur.apache.org> From: erodriguez@apache.org To: directory-cvs@incubator.apache.org Subject: svn commit: rev 56362 - incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/changepw/value X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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; + } +} +