Package com.adito.security

Examples of com.adito.security.UserNotFoundException


            for (int i = 0; i < users.length; i++) {
                if (users[i].getPrincipalName().equals(username)) {
                    return users[i];
                }
            }
            throw new UserNotFoundException("Could not find user " + username);
        } catch (Exception e) {
            e.printStackTrace();
            throw e;
        }
    }
View Full Code Here


        if (!userContainer.containsPrincipal(username)) {
            loadUsers(username, false);
        }
        if (!userContainer.containsPrincipal(username)) {
            throw new UserNotFoundException(username + " is not a valid user!");
        }
        return userContainer.retrievePrincipal(username);
    }
View Full Code Here

                return pagedResultTemplate.searchForResult(context, configuration.getBaseDn(), replacedFilter);
            }
        });
       
        if (!isAccountFound) {
            throw new UserNotFoundException(serviceAccountName + " is not a valid user!");
        }
    }
View Full Code Here

        user = new PAMUser(username, this.realm);
        user.addGroup(groups.get("Users"));
        users.put(username, user);
      }
      else {
        throw new UserNotFoundException(username);
      }
    }
    return user;
  }
View Full Code Here

                  .getDate("last_password_change"), usersRealm);
            addRoles(u);
            return u;
          }
                }
                throw new UserNotFoundException("No user exists with username " + username + " in realm " + realm.getResourceDisplayName());
      } finally {
        results.close();
      }
    } finally {
      ps.releasePreparedStatement();
View Full Code Here

TOP

Related Classes of com.adito.security.UserNotFoundException

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.