1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 *
19 */
20 package org.apache.directory.api.ldap.extras.extended.pwdModify;
21
22
23 import org.apache.directory.api.ldap.model.message.ExtendedRequest;
24
25
26 /**
27 * The RFC 3062 PwdModify request :
28 *
29 * <pre>
30 * PasswdModifyRequestValue ::= SEQUENCE {
31 * userIdentity [0] OCTET STRING OPTIONAL
32 * oldPasswd [1] OCTET STRING OPTIONAL
33 * newPasswd [2] OCTET STRING OPTIONAL }
34 * </pre>
35 *
36 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
37 */
38 public interface PasswordModifyRequest extends ExtendedRequest
39 {
40 /** The OID for the pwdModify extended operation request. */
41 String EXTENSION_OID = "1.3.6.1.4.1.4203.1.11.1";
42
43
44 /**
45 * @return the userIdentity
46 */
47 byte[] getUserIdentity();
48
49
50 /**
51 * Set the user identity
52 *
53 * @param the userIdentity to set
54 */
55 void setUserIdentity( byte[] userIdentity );
56
57
58 /**
59 * @return the oldPassword
60 */
61 byte[] getOldPassword();
62
63
64 /**
65 * Set the old password
66 *
67 * @param the oldPassword to set
68 */
69 void setOldPassword( byte[] oldPassword );
70
71
72 /**
73 * @return the newPassword
74 */
75 byte[] getNewPassword();
76
77
78 /**
79 * Set a new password
80 *
81 * @param the new password to set
82 */
83 void setNewPassword( byte[] newPassword );
84 }