2 * Copyright (C) 2016 Roland Haeder
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU Affero General Public License as
6 * published by the Free Software Foundation, either version 3 of the
7 * License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Affero General Public License for more details.
14 * You should have received a copy of the GNU Affero General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package org.mxchange.jjobs.beans.user.password;
19 import java.io.Serializable;
20 import javax.ejb.Local;
23 * An interface for user beans
25 * @author Roland Haeder<roland@mxchange.org>
28 public interface JobsUserPasswordWebRequestController extends Serializable {
31 * Getter for unencrypted user password
33 * @return Unencrypted user password
35 String getUserPassword ();
38 * Setter for unencrypted user password
40 * @param userPassword Unencrypted user password
42 void setUserPassword (final String userPassword);
45 * Getter for current unencrypted user password
47 * @return Current unencrypted user password
49 String getUserCurrentPassword ();
52 * Setter for current unencrypted user password
54 * @param userCurrentPassword Current unencrypted user password
56 void setUserCurrentPassword (final String userCurrentPassword);
59 * Getter for unencrypted user password repeated
61 * @return Unencrypted user password repeated
63 String getUserPasswordRepeat ();
66 * Setter for unencrypted user password repeated
68 * @param userPasswordRepeat Unencrypted user password repeated
70 void setUserPasswordRepeat (final String userPasswordRepeat);
73 * Changes logged-in user's password. It must not match with current password and should not appear in password history list for X (configurable) entries.
75 * @return Redirect outcome
77 String doChangePassword ();