(no commit message)
[utils] / security / usermgt / src / main / java / org / wamblee / security / authentication / UserAdministration.java
index 7ed58086f5083a3532e34937552be296fb9bcab0..74508b3ee2572fd7025881af4314718dfd6e3ff0 100644 (file)
@@ -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<String> getGroups(String aUser);
-    
+
     /**
      * Renames a user.
      *