Package org.apache.james.user.api

Examples of org.apache.james.user.api.User


     *
     * @see org.apache.james.api.user.UsersRepository#test(java.lang.String,
     * java.lang.String)
     */
    public boolean test(String name, String password) {
        User u = getUserByName(name);
        if (u != null) {
            return u.verifyPassword(password);
        }
        return false;
    }
View Full Code Here


     * @param name
     *            the name to case-correct
     * @return the case-correct name of the user, null if the user doesn't exist
     */
    public String getRealName(String name) {
        User u = getUserByName(name);
        if (u != null) {
            u.getUserName();
        }
        return null;
    }
View Full Code Here

     *         or if the password is incorrect
     *
     * @since James 1.2.2
     */
    public boolean test(String name, String password) {
        final User user = getUserByName(name);
        final boolean result;
        if (user == null) {
            result = false;
        } else {
            result = user.verifyPassword(password);
        }
        return result;
    }
View Full Code Here

TOP

Related Classes of org.apache.james.user.api.User

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.