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 unencrypted user password repeated
47 * @return Unencrypted user password repeated
49 String getUserPasswordRepeat ();
52 * Setter for unencrypted user password repeated
54 * @param userPasswordRepeat Unencrypted user password repeated
56 void setUserPasswordRepeat (final String userPasswordRepeat);
59 * Checks whether all required "password-change fields" are set.
61 * @return Whether the required fields are set
63 boolean isRequiredChangePasswordSet ();
66 * Changes logged-in user's password. It must not match with current
67 * password and should not appear in password history list for X
68 * (configurable) entries.
70 * @return Redirect outcome
72 String doChangePassword ();