Package org.acegisecurity.userdetails.memory

Examples of org.acegisecurity.userdetails.memory.UserAttribute


            // flag
            String username = (String) iter.next();
            configAttribEd.setAsText(props.getProperty(username));

            // if the parsing succeeded turn that into a user object
            UserAttribute attr = (UserAttribute) configAttribEd.getValue();
            if (attr != null) {
                User user = createUserObject(username, attr.getPassword(), attr.isEnabled(), attr.getAuthorities());
                users.put(username, user);
            }
        }

        return users;
View Full Code Here


  Iterator it = prop.keySet().iterator();
  while  (it.hasNext()){
    String username = (String)it.next();
    uae.setAsText(prop.getProperty(username));
    UserAttribute attrs = (UserAttribute) uae.getValue();
    if (attrs != null) {
      myDetailStorage.put(username, makeUser(username, attrs));
    }
  }
      }
View Full Code Here

        return true;
    }

    protected void putMap(Map details) throws Exception {
        String username = (String)getRequest().getAttributes().get("user");
        UserAttribute attr = new UserAttribute();
        attr.setPassword(details.get("password").toString());
        attr.setEnabled(true);
        attr.setAuthoritiesAsString((List) details.get("roles"));

        myUserService.setUserDetails(username, attr);
    }
View Full Code Here

TOP

Related Classes of org.acegisecurity.userdetails.memory.UserAttribute

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.