Package com.caucho.security

Examples of com.caucho.security.PasswordUser


    StringBuilder builder = new StringBuilder();

    for (Iterator<PasswordUser> it = users.values().iterator();
         it.hasNext(); ) {
      PasswordUser user = it.next();

      builder.append(user.getPrincipal().getName());

      String []roles = user.getRoles();

      if (roles != null && roles.length > 0) {
        builder.append(": ");
        for (int i = 0; i < roles.length; i++) {
          builder.append(roles[i]);
View Full Code Here


    if (userName == null)
      return null;

    // The caller should clear the password in the returned PasswordUser,
    // so we need to return a copy
    PasswordUser user = _userMap.get(userName);

    if (user != null)
      return user.copy();
    else
      return null;
  }
View Full Code Here

      if (_name == null)
        throw new ConfigException(L.l("management <user> requires a 'name' attribute"));

      boolean isAnonymous = false;

      return new PasswordUser(new BasicPrincipal(_name),
                              _password.toCharArray(),
                              _isDisabled, isAnonymous,
                              new String[] { "resin-admin" });
    }
View Full Code Here

    if (userName == null)
      return null;

    // The caller should clear the password in the returned PasswordUser,
    // so we need to return a copy
    PasswordUser user = _userMap.get(userName);

    if (user != null)
      return user.copy();
    else
      return null;
  }
View Full Code Here

TOP

Related Classes of com.caucho.security.PasswordUser

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.