2 * Copyright (C) 2016, 2017 Roland Häder
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.pizzaapplication.beans.user.password;
19 import java.io.Serializable;
20 import javax.ejb.Local;
23 * An interface for user beans
25 * @author Roland Häder<roland@mxchange.org>
28 public interface PizzaUserPasswordWebRequestController extends Serializable {
31 * Getter for clear-text user password
33 * @return Clear-text user password
35 String getUserPassword ();
38 * Setter for clear-text user password
40 * @param userPassword Clear-text user password
42 void setUserPassword (final String userPassword);
45 * Getter for current clear-text user password
47 * @return Current clear-text user password
49 String getUserCurrentPassword ();
52 * Setter for current clear-text user password
54 * @param userCurrentPassword Current clear-text user password
56 void setUserCurrentPassword (final String userCurrentPassword);
59 * Getter for clear-text user password repeated
61 * @return Clear-text user password repeated
63 String getUserPasswordRepeat ();
66 * Setter for clear-text user password repeated
68 * @param userPasswordRepeat Clear-text user password repeated
70 void setUserPasswordRepeat (final String userPasswordRepeat);
73 * Changes logged-in user's password. It must not match with current
74 * password and should not appear in password history list for X
75 * (configurable) entries.
77 * @return Redirect outcome
79 String doChangePassword ();
82 * Checks if all 3 passwords are set: old password, 2x new password
84 * @return Whether all passwords are set
86 boolean isRequiredChangePasswordSet ();