* 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;
* 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);
* 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);
/**
*
* @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);
/**
*
/**
* Gets all groups for a given user.
*
- * @param aUser user.
+ * @param aUser
+ * user.
* @return Groups.
*/
List<String> getGroups(String aUser);
-
+
/**
* Renames a user.
*