X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=security%2Fusermgt%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fsecurity%2Fauthentication%2FUserAdministration.java;fp=security%2Fusermgt%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fsecurity%2Fauthentication%2FUserAdministration.java;h=74508b3ee2572fd7025881af4314718dfd6e3ff0;hb=3e8de23e00da80d5506c750a28e7d25f261eda92;hp=7ed58086f5083a3532e34937552be296fb9bcab0;hpb=db9f2962e5c2fe846dc11292d578e6ca878e6716;p=utils diff --git a/security/usermgt/src/main/java/org/wamblee/security/authentication/UserAdministration.java b/security/usermgt/src/main/java/org/wamblee/security/authentication/UserAdministration.java index 7ed58086..74508b3e 100644 --- a/security/usermgt/src/main/java/org/wamblee/security/authentication/UserAdministration.java +++ b/security/usermgt/src/main/java/org/wamblee/security/authentication/UserAdministration.java @@ -12,7 +12,7 @@ * 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.wamblee.security.authentication; import java.util.List; @@ -50,31 +50,35 @@ public interface UserAdministration { * In case there is a conflict with an existing group. */ void createGroup(String aName); - + /** - * Checks if a user exists. - * @param aUser User to check. - * @return True iff user exists. + * Checks if a user exists. + * + * @param aUser + * User to check. + * @return True iff user exists. */ boolean checkUser(String aUser); - - + /** - * Check if a group exists. - * @param aGroup Group. - * @return True iff group exists. + * Check if a group exists. + * + * @param aGroup + * Group. + * @return True iff group exists. */ boolean checkGroup(String aGroup); - + /** * Checks the password. * - * @param aUser + * @param aUser * User to check password for. * @param aPassword * Password to check. - * @throws UserMgtException In case user does not exist. - * @return True iff password is ok. + * @throws UserMgtException + * In case user does not exist. + * @return True iff password is ok. */ boolean checkPassword(String aUser, String aPassword); @@ -82,16 +86,18 @@ public interface UserAdministration { * Changes the password. * * @param aUser - * User. + * User. * @param aOldPassword * Old password. * @param aNewPassword * New password. * - * @throws UserMgtException Inc ase the user does not exist. - * @return True if the password was changed. + * @throws UserMgtException + * Inc ase the user does not exist. + * @return True if the password was changed. */ - boolean changePassword(String aUser, String aOldPassword, String aNewPassword); + boolean changePassword(String aUser, String aOldPassword, + String aNewPassword); /** * @@ -100,18 +106,23 @@ public interface UserAdministration { * @param aPassword * The password to set. * - * @throws UserMgtException Inc ase the user does not exist. + * @throws UserMgtException + * Inc ase the user does not exist. */ void setPassword(String aUser, String aPassword); /** * Checks if the user belongs to the given group. - * @param aUser User - * @param aGroup Group. + * + * @param aUser + * User + * @param aGroup + * Group. * @return True iff user is in group - * @throws UserMgtException In case the user or group do not exist. + * @throws UserMgtException + * In case the user or group do not exist. */ - boolean isInGroup(String aUser, String aGroup); + boolean isInGroup(String aUser, String aGroup); /** * @@ -151,11 +162,12 @@ public interface UserAdministration { /** * Gets all groups for a given user. * - * @param aUser user. + * @param aUser + * user. * @return Groups. */ List getGroups(String aUser); - + /** * Renames a user. *