Package com.sun.enterprise.security.auth.realm

Examples of com.sun.enterprise.security.auth.realm.NoSuchUserException


    public synchronized void removeUser(String name)
        throws NoSuchUserException, BadRealmException
    {
        if (!userTable.containsKey(name)) {
            String msg = sm.getString("filerealm.nouser", name);
            throw new NoSuchUserException(msg);
        }

        FileRealmUser oldUser = (FileRealmUser)userTable.get(name);
        userTable.remove(name);
        reduceGroups(oldUser.getGroups());
View Full Code Here


    {
                                // user to modify must exist first
        validateUserName(name);
        if (!userTable.containsKey(name)) {
            String msg = sm.getString("filerealm.nouser", name);
            throw new NoSuchUserException(msg);
        }

                                // do general validation
        validateUserName(newName);
        validateGroupList(groups);
View Full Code Here

    {
       
        FileRealmHelper.User u = helper.getUser(name);
        if (u == null) {
            String msg = sm.getString("filerealm.nouser", name);
            throw new NoSuchUserException(msg);
        }
        return new FileRealmUser(u, null);
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.security.auth.realm.NoSuchUserException

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.