Examples of UserNotFoundException


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

Examples of com.adito.security.UserNotFoundException

        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

Examples of com.adito.security.UserNotFoundException

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

Examples of com.adito.security.UserNotFoundException

        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

Examples of com.adito.security.UserNotFoundException

                  .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

Examples of com.baasbox.exception.UserNotFoundException

    db = DbHelper.reconnectAsAdmin();
    UserDao udao=UserDao.getInstance();
    ODocument user = udao.getByUserName(username);
    if(user==null){
      if (Logger.isDebugEnabled()) Logger.debug("User " + username + " does not exist");
      throw new UserNotFoundException("User " + username + " does not exist");
    }
    db.getMetadata().getSecurity().getUser(username).setPassword(newPassword).save();
  }
View Full Code Here

Examples of com.cin.exceptions.UserNotFoundException

  }
 
  public UserDTO retrieveUserRecord(int ssn) throws UserNotFoundException{
    UserDTO userFound = userFactory.findUserBySsn(ssn);
    if( userFound == null ){
      throw new UserNotFoundException("User with ssn "+ssn+" was not found.");
    }
    return userFound;
  }
View Full Code Here

Examples of com.cosmo.security.UserNotFoundException

            if (agent.getParamBoolean(PARAM_LOCKCONTROL, false))
            {
               loginFail(login);
            }

            throw new UserNotFoundException();
         }

         // Actualiza los datos estadísticos y de control del usuario
         sql = "UPDATE " + TABLE_NAME + " " +
               "SET usrlastlogin  = current_timestamp, " +
View Full Code Here

Examples of com.google.nigori.server.UserNotFoundException

  public byte[] getPublicKey(byte[] publicHash) throws UserNotFoundException {
    PersistenceManager pm = pmfInstance.getPersistenceManager();
    try {
      return getUser(publicHash, pm).getPublicKey();
    } catch (JDOObjectNotFoundException e) {
      throw new UserNotFoundException();
    } finally {
      pm.close();
    }
  }
View Full Code Here

Examples of com.google.nigori.server.UserNotFoundException

    PersistenceManager pm = pmfInstance.getPersistenceManager();
    try {
      AEUser user = getUser(publicHash, pm);
      return user;
    } catch (JDOObjectNotFoundException e) {
      throw new UserNotFoundException();
    } finally {
      pm.close();
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.