Examples of EnterpriseUserPassword


Examples of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.EnterpriseUserPassword

    try {
      NetId netId = (NetId)getAppConfig().getObject("NetId");

      EnterpriseUser entUser = (EnterpriseUser)getAppConfig()
        .getObject("EnterpriseUser");
      EnterpriseUserPassword entUserPassword =
        (EnterpriseUserPassword)getAppConfig()
        .getObject("EnterpriseUserPassword");
    }
    catch (EnterpriseConfigurationObjectException eoce) {
      // An error occurred retrieving a required object from AppConfig. Log it
View Full Code Here

Examples of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.EnterpriseUserPassword

      publishSyncError(eControlArea, errors);
      return;
    }

    // Get two configured EnterpriseUserPassword from AppConfig.
    EnterpriseUserPassword currentEntUserPassword = null;
    EnterpriseUserPassword newEntUserPassword = null;
    try {
      currentEntUserPassword = (EnterpriseUserPassword)getAppConfig()
        .getObject("EnterpriseUserPassword");
      newEntUserPassword = (EnterpriseUserPassword)getAppConfig()
        .getObject("EnterpriseUserPassword");
    }
    catch (EnterpriseConfigurationObjectException ecoe) {
      // An error occurred getting an object from AppConfig. Log it and
      // publish a sync error message.
      Error error = new Error();
      error.setType("application");
      error.setErrorNumber("OpenEAI-3001");
      error.setErrorDescription("An error occurred getting an object from " +
        "AppConfig. the exception is: " + ecoe.getMessage());
      errors = new ArrayList();
      errors.add(error);
      publishSyncError(eControlArea, errors, ecoe);
      return;
    }

    // Handle an EnterpriseUserPassword.CreateSync or an
    // EnterpriseUserPassword.Update-Sync.
    if (messageAction.equalsIgnoreCase("Create") ||
        messageAction.equalsIgnoreCase("Update")) {
     
      // Get the new state of the EnterpriseUserPassword and build an
      // EnterpriseUserPassword object.
      Element eNewPassword = inDoc.getRootElement().getChild("DataArea")
        .getChild("NewData").getChild("EnterpriseUserPassword");
      try
        newEntUserPassword.buildObjectFromInput(eNewPassword);
      }
      catch (EnterpriseLayoutException ele) {
        // An error occurred building the EnterpriseUserPassword object from the
        // EnterpriseUserPassword element contained in the NewData element of
        // the message. Log it and publish a sync error message.
        Error error = new Error();
        error.setType("system");
        error.setErrorNumber("UportalGateway-1002");
        error.setErrorDescription("An error occurred building the " +
          "EnterpriseUserPassword object from the EnterpriseUserPassword " +
          "element contained in the NewData element of the message. The " +
          "exception is: " + ele.getMessage());
        errors = new ArrayList();
        errors.add(error);
        publishSyncError(eControlArea, errors, ele);
        return;
      }

      // Determine whether the user exists in the database.
      String instId = newEntUserPassword.getEnterpriseUser()
        .getLightweightPerson().getInstitutionalId();
      PortalPerson portalPerson = null
      try { portalPerson = retrievePortalPerson(instId); }
      catch (CommandException ce) {
        // An error occurred querying the portal database to determine whether
        // the user exists. Log it, publish a error message, and return.
        String errMsg = "An error occurred querying the portal database to " +
          "determine whether the user exists.";
        logger.debug("[PasswordSyncCommand.execute] " + errMsg);
        Error error = new Error();
        error.setType("system");
        error.setErrorNumber("UportalGateway-2001");
        error.setErrorDescription(errMsg);
        errors = new ArrayList();
        errors.add(error);
        publishSyncError(eControlArea, errors, ce);
        return;
      }

      // If the user does not exist, publish a error message indicating
      // that the user does not exist.
      if (portalPerson == null) {
        Error error = new Error();
        error.setType("application");
        error.setErrorNumber("UportalGateway-1001");
        error.setErrorDescription("No user with user ID " + instId +
          ") exists in the portal. Cannot reset the password for this user.");
        logger.fatal("[PasswordSyncCommand.execute] " +
          error.getErrorDescription());
        errors = new ArrayList();
        errors.add(error);
        publishSyncError(eControlArea, errors);
        return;
      }

      // Otherwise, the user already exists in the portal, so reset the
      // user's password to be the new value indicated in the message.
      else {
        // Encypt the password.
        String cleartextPassword = newEntUserPassword.getPassword().getValue();
        byte[] hash, rnd = new byte[8], fin = new byte[24];
        Long date = new Long((new java.util.Date()).getTime());
        SecureRandom r = new SecureRandom((date.toString()).getBytes());
        MessageDigest md = null;
        try { md = MessageDigest.getInstance("MD5"); }
View Full Code Here

Examples of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.EnterpriseUserPassword

    try {
      NetId netId = (NetId)getAppConfig().getObject("NetId");

      EnterpriseUser entUser = (EnterpriseUser)getAppConfig()
        .getObject("EnterpriseUser");
      EnterpriseUserPassword entUserPassword =
        (EnterpriseUserPassword)getAppConfig()
        .getObject("EnterpriseUserPassword");
    }
    catch (EnterpriseConfigurationObjectException eoce) {
      // An error occurred retrieving a required object from AppConfig. Log it
View Full Code Here

Examples of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.EnterpriseUserPassword

      publishSyncError(eControlArea, errors);
      return;
    }

    // Get two configured EnterpriseUserPassword from AppConfig.
    EnterpriseUserPassword currentEntUserPassword = null;
    EnterpriseUserPassword newEntUserPassword = null;
    try {
      currentEntUserPassword = (EnterpriseUserPassword)getAppConfig()
        .getObject("EnterpriseUserPassword");
      newEntUserPassword = (EnterpriseUserPassword)getAppConfig()
        .getObject("EnterpriseUserPassword");
    }
    catch (EnterpriseConfigurationObjectException ecoe) {
      // An error occurred getting an object from AppConfig. Log it and
      // publish a sync error message.
      Error error = new Error();
      error.setType("application");
      error.setErrorNumber("OpenEAI-3001");
      error.setErrorDescription("An error occurred getting an object from " +
        "AppConfig. the exception is: " + ecoe.getMessage());
      errors = new ArrayList();
      errors.add(error);
      publishSyncError(eControlArea, errors, ecoe);
      return;
    }

    // Handle an EnterpriseUserPassword.Create-Sync
    if (messageAction.equalsIgnoreCase("Create")) {
      logger.info("[" + getServiceName() + ".execute] Handling an " +
        "EnterpriseUserPassword.Create-Sync message.");
       
      // Get the new state of the EnterpriseUserPassword and build an
      // EnterpriseUserPassword object.
      Element eNewPassword = inDoc.getRootElement().getChild("DataArea")
        .getChild("NewData").getChild("EnterpriseUserPassword");
      try { newEntUserPassword.buildObjectFromInput(eNewPassword); }
      catch (EnterpriseLayoutException ele) {
        // An error occurred building the EnterpriseUserPassword object from the
        // EnterpriseUserPassword element contained in the NewData element of
        // the message. Log it and publish a sync error message.
        Error error = new Error();
        error.setType("system");
        error.setErrorNumber("DirectoryServiceGateway-1002");
        error.setErrorDescription("An error occurred building the " +
          "EnterpriseUserPassword object from the EnterpriseUserPassword " +
          "element contained in the NewData element of the message. The " +
          "exception is: " + ele.getMessage());
        errors = new ArrayList();
        errors.add(error);
        publishSyncError(eControlArea, errors, ele);
        return;
      }

      // Determine whether the user exists is the directory server.
      LightweightPerson lPerson = newEntUserPassword.getEnterpriseUser()
        .getLightweightPerson();
      String userName = "";
      if (lPerson.getName() != null) userName = lPerson.getName().getFirstName()
        + " " + lPerson.getName().getLastName();

      logger.debug("[" + getServiceName() + ".execute] Querying the directory to " +
        "determine if the user whose password has changed already exists " +
        "in the directory.");

      // Specify the search filter for the directory service query using
      // the employeeNumber.
      String filter = "employeeNumber=" + lPerson.getInstitutionalId();
      logger.debug("[" + getServiceName() + ".execute] Search filter is: " + filter);

      // Specify the providerUrl.
      String providerUrl = getUserDirectoryTreeBase();
      logger.debug("[" + getServiceName() + ".execute] providerUrl is: " +
        providerUrl);

      // Specify search controls that set the scope of the search.
      SearchControls cons = new SearchControls();
      cons.setSearchScope(SearchControls.ONELEVEL_SCOPE);
      String[] attrs = new String[1];
      attrs[0] = "uid";
      cons.setReturningAttributes(attrs);

      // Search for user entries that match the employeeNumber, retrieving
      // the uid.
      NamingEnumeration results = null;
      boolean userExists = false;
      try {
        logger.debug("[" + getServiceName() + ".execute] Querying the directory " +
          "server.");
        results = getDirContext().search(providerUrl, filter, cons);
        if (results != null && results.hasMore() == true) userExists = true;  
      }
      catch (NamingException ne) {
        // An error occurred querying the directory server to determine whether
        // the user exists. Log it, publich a error message, and return.
        String errMsg = "An error occurred querying the directory server to " +
          "determine whether the user exists.";
        logger.debug("[" + getServiceName() + ".execute] " + errMsg);
        Error error = new Error();
        error.setType("system");
        error.setErrorNumber("DirectoryServiceGateway-2002");
        error.setErrorDescription(errMsg);
        errors = new ArrayList();
        errors.add(error);
        publishSyncError(eControlArea, errors, ne);
        return;
      }

      // If there are no matching entries, the user does not exist. If the
      // createMissingUsers property is true, create the user with attribute
      // and password indicated in the new data of the message. If the
      // createMissingUsers property is false, publish a Sync.Error-Sync
      // indicating that the password cannot be set for this user, because
      // the user does not exist.
      if (userExists == false) {
        logger.info("[" + getServiceName() + ".execute] The user " + userName +
          "(" + lPerson.getInstitutionalId() +
          ") does not exist in the directory.");

        if (getCreateMissingUsers() == true) {
          // Create the user.
          // -- Build the attributes for the new directory entry.
          BasicAttributes attributes = buildDirectoryUser(newEntUserPassword);

          // -- Create the new subcontext for the entry.
          String dn = "uid=" + getEnterpriseId(newEntUserPassword
            .getEnterpriseUser()).getPrincipal() + "," +
            getUserDirectoryTreeBase();
          logger.debug("[" + getServiceName() + ".execute] dn for the new " +
            "directory context is: " + dn);
          try {
            logger.debug("[" + getServiceName() + ".execute] Creating directory " +
              "user with attributes: " + attributes.toString());
            Context result = getDirContext().createSubcontext(dn, attributes);
            logger.info("[" + getServiceName() + ".execute] Created directory " +
              "user.");
          }
          catch (NamingException ne) {
            // An error occurred creating the entry for the user in the
            // directory server. Log it, publich a error message, and return.
            String errMsg = "An error occurred creating the entry for the " +
              "user in the directory server.";
            logger.debug("[" + getServiceName() + ".execute] " + errMsg);
            Error error = new Error();
            error.setType("system");
            error.setErrorNumber("DirectoryServiceGateway-2002");
            error.setErrorDescription(errMsg);
            errors = new ArrayList();
            errors.add(error);
            publishSyncError(eControlArea, errors, ne);
            return;
          }
          return;
        }
        else {
          // The createMissingUsers property is false, so we will not create
          // the missing user.
          logger.info("[" + getServiceName() + ".execute] createMissingUsers is " +
            "false, so the missing user will not be created and the " +
            "cannot be set.");
          return;
        }
      }
      else {
        // Otherwise, the user already exists, so the user does not have to be
        // created. Log it and return.
        logger.info("[" + getServiceName() + ".execute] The directory user already "
            + "exists, so the user does not need to be created.");
        return;
      }
    }

    // Handle an EnterpriseUserPassword.Update-Sync
    if (messageAction.equalsIgnoreCase("Update")) {
      // Get the baseline state of the EnterpriseUserPassword and build an
      // EnterpriseUserPassword object.
      Element eBaselinePassword = inDoc.getRootElement().getChild("DataArea")
        .getChild("BaselineData").getChild("EnterpriseUserPassword");
      try
        currentEntUserPassword.buildObjectFromInput(eBaselinePassword);
      }
      catch (EnterpriseLayoutException ele) {
        // An error occurred building the EnterpriseUserPassword object from the
        // EnterpriseUserPassword element contained in the BaselineData element
        // of the message. Log it and publish a sync error message.
        Error error = new Error();
        error.setType("system");
        error.setErrorNumber("DirectoryServiceGateway-1001");
        error.setErrorDescription("An error occurred building the " +
          "EnterpriseUserPassword object from the EnterpriseUserPassword " +
          "element contained in the BaselineData element of the message. The " +
          "exception is: " + ele.getMessage());
        errors = new ArrayList();
        errors.add(error);
        publishSyncError(eControlArea, errors, ele);
        return;
      }

      // Get the new state of the EnterpriseUserPassword and build an
      // EnterpriseUserPassword object.
      Element eNewPassword = inDoc.getRootElement().getChild("DataArea")
        .getChild("NewData").getChild("EnterpriseUserPassword");
      try
        newEntUserPassword.buildObjectFromInput(eNewPassword);
      }
      catch (EnterpriseLayoutException ele) {
        // An error occurred building the EnterpriseUserPassword object from the
        // EnterpriseUserPassword element contained in the NewData element of
        // the message. Log it and publish a sync error message.
        Error error = new Error();
        error.setType("system");
        error.setErrorNumber("DirectoryServiceGateway-1002");
        error.setErrorDescription("An error occurred building the " +
          "EnterpriseUserPassword object from the EnterpriseUserPassword " +
          "element contained in the NewData element of the message. The " +
          "exception is: " + ele.getMessage());
        errors = new ArrayList();
        errors.add(error);
        publishSyncError(eControlArea, errors, ele);
        return;
      }

      // Determine whether the user exists is the directory server.
      LightweightPerson lPerson = newEntUserPassword.getEnterpriseUser()
        .getLightweightPerson();
      String userName = "";
      if (lPerson.getName() != null) userName = lPerson.getName().getFirstName()
        + " " + lPerson.getName().getLastName();

      logger.debug("[" + getServiceName() + ".execute] Querying the directory to " +
        "see if the user whose password has changed already exists in the " +
        "directory.");

      // Specify the search filter for the directory service query using
      // the uniqueMember and the uniquePermission built above.
      String filter = "employeeNumber=" + lPerson.getInstitutionalId();
      logger.debug("[" + getServiceName() + ".execute] Search filter is: " + filter);

      // Specify the providerUrl.
      String providerUrl = getUserDirectoryTreeBase();
      logger.debug("[" + getServiceName() + ".execute] providerUrl is: " +
        providerUrl);

      // Specify search controls that set the scope of the search.
      SearchControls cons = new SearchControls();
      cons.setSearchScope(SearchControls.ONELEVEL_SCOPE);
      String[] attrs = new String[1];
      attrs[0] = "uid";
      cons.setReturningAttributes(attrs);

      // Search for user entries that match the employeeNumber, retrieving
      // the uid.
      try {
        logger.debug("[" + getServiceName() + ".execute] Querying the directory " +
          "server.");
        NamingEnumeration results = getDirContext().search(providerUrl, filter,
          cons);

        // If there are no matching entries, publish a error message indicating
        // that the user does not exist.
        if (results == null || results.hasMore() == false) {
          Error error = new Error();
          error.setType("application");
          error.setErrorNumber("DirectoryServiceGateway-1005");
          error.setErrorDescription("No user " + userName + "(" +
            lPerson.getInstitutionalId() + ") exists in the directory. " +
            "Cannot reset the password for this user.");
          logger.fatal("[" + getServiceName() + ".execute] " +
            error.getErrorDescription());
          errors = new ArrayList();
          errors.add(error);
          publishSyncError(eControlArea, errors);
          return;
        }

        // Otherwise, the user already exists in the directory, so reset the
        // user's password to be the new value indicated in the message.
        else {
          // -- Get the dn for the EnterpriseUser.
          NetId enterpriseId = new NetId();
          enterpriseId = getEnterpriseId(newEntUserPassword.getEnterpriseUser());
          String dn = "uid=" + enterpriseId.getPrincipal() + "," + getUserDirectoryTreeBase();

          // Specify the modification.
          String newPassword = newEntUserPassword.getPassword().getValue();
          // SHA algorithm is assumed here.  Maybe this should be made configurable.
          String shaPw = makeSHA(newPassword);
          Attribute userPassword = new BasicAttribute("userPassword");
          userPassword.add(shaPw);
          ModificationItem[] mods = new ModificationItem[1];
View Full Code Here

Examples of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.EnterpriseUserPassword

              principal=p.getName();
              String domain=null;
              domain="any-openeai-enterprise.org";
              logger.info("["+portletName+"] "+"principal="+principal);                 
              logger.info("["+portletName+"] "+"domain="+domain);                 
              EnterpriseUserPassword eup=updateEnterpriseUserPassword(instID, principal, domain, newPassword);
              logger.info("["+portletName+"] "+"EnterpriseUserPassword="+eup);                 
              response.setRenderParameter("actionMessage","Password changed. Logout of uPortal.");                                       
            }
          }
        } else {
View Full Code Here

Examples of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.EnterpriseUserPassword

    netId.setDomain(domain);
     
      eu.setLightweightPerson(lPerson);
      eu.addNetId(netId);
     
      EnterpriseUserPassword eup=(EnterpriseUserPassword)appConfig.getObject(ENTERPRISE_USER_PASSWORD);
      eup.setEnterpriseUser(eu);
      Password p = eup.newPassword();
      p.setValue(newPassword);
      p.setType("secure credential");
      p.setEncryption("cleartext");
     
      java.util.List returnedEup = eup.query(eu, p2p);
      if (returnedEup.size() == 0) {
        //create the password
        eup.setPassword(p);
        eup.create(p2p);
        return eup;
      } else {
        //update the password
        EnterpriseUserPassword baselineEup = (EnterpriseUserPassword) returnedEup.get(0);
      logger.info("["+portletName+"] baseline="+baselineEup);       
        eup.setBaseline(baselineEup);
        eup.setPassword(p);
        eup.update(p2p);
        return eup;
View Full Code Here

Examples of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.EnterpriseUserPassword

      String newPassword = getChannelRuntimeData().getParameter("NewPassword@value");
      String confirmNewPassword = getChannelRuntimeData().getParameter("ConfirmNewPassword@value");
      String oldPassword = getChannelRuntimeData().getParameter("OldPassword@value");

      // get the baseline (current value of 'xml' variable)
      EnterpriseUserPassword baselineEup = (EnterpriseUserPassword)getAppConfig().getObject(messageObjectName);
      baselineEup.getXmlEnterpriseObject().getEnterpriseFields().setIgnoreValidation(true);
      baselineEup.getXmlEnterpriseObject().buildObjectFromXmlString(getBaselineXml());
      boolean doCreate = false;
      if (oldPassword.equals(baselineEup.getPassword().getValue()) == false) {
        // check the old password against the uPortal stored password because it may
        // need to be created yet in our enterprise...
        LogService.log(LogService.INFO,
          "[EnterpriseUserPasswordUpdateHandler] entered password doesn't match " +
          "baseline password in message, have to check uPortal repository.");
        if (passwordMatchesUPortalPassword(oldPassword)) {
          LogService.log(LogService.INFO, "password entered matches uPortal repository");
          doCreate = true;
        }
        else {
          // error, return
          String errMessage = "[EnterpriseUserPasswordUpdateHandler] old password '" +
            oldPassword + "' typed in does not match old password '" +
            baselineEup.getPassword().getValue() + "' for this person";
          LogService.log(LogService.ERROR, errMessage);
          throw new UportalFormHandlerException(errMessage);
        }
      }
      if (newPassword.equals(confirmNewPassword) == false) {
        // error, return
        String errMessage = "[EnterpriseUserPasswordUpdateHandler] new password '" +
          newPassword + "' typed in does not match confirmation password '" +
          confirmNewPassword + "' typed in.";
        LogService.log(LogService.ERROR, errMessage);
        throw new UportalFormHandlerException(errMessage);
      }


      // get the newdata from the form data
      EnterpriseUserPassword eup = (EnterpriseUserPassword)getAppConfig().getObject(messageObjectName);
      eup.getXmlEnterpriseObject().setBaseline(baselineEup.getXmlEnterpriseObject());
      Password p = eup.newPassword();
      p.setValue(newPassword);
      p.setType(getChannelRuntimeData().getParameter("Password@type"));
      p.setEncryption(getChannelRuntimeData().getParameter("Password@encryption"));
      eup.setPassword(p);
      eup.setEnterpriseUser(baselineEup.getEnterpriseUser());
     

      // todo - use producer pool
      if (doCreate == false) {
        LogService.log(LogService.INFO,
          "[EnterpriseUserPasswordUpdateHandler] built " + messageObjectName +
          " from form data, performing Update...");
        eup.update((PointToPointProducer)getAppConfig().getObject(producerName));
        LogService.log(LogService.INFO,
          "[EnterpriseUserPasswordUpdateHandler] " + messageObjectName +
          " update is done.");
      }
      else {
        LogService.log(LogService.INFO,
          "[EnterpriseUserPasswordUpdateHandler] performing the Create...");
        eup.create((PointToPointProducer)getAppConfig().getObject(producerName));
        LogService.log(LogService.INFO, "[EnterpriseUserPasswordUpdateHandler] " +
          messageObjectName + " create is done.");
      }

      xml = INITIAL_XML;
      xml += eup.getXmlEnterpriseObject().toXmlString();
    }
    catch (Exception openeaiExc) {
      LogService.log(LogService.ERROR, openeaiExc);
      openeaiExc.printStackTrace();
      throw new UportalFormHandlerException("[EnterpriseUserPasswordUpdateHandler] Error performing update action", openeaiExc);
View Full Code Here

Examples of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.EnterpriseUserPassword

    String username = credentials.getUsername();
    String password = credentials.getPassword();
    System.out.println("["+this.getClass().getSimpleName()+"] Authentication request for "
        + username+ "@"+"any-openeai-enterprise.org");
    try {
      EnterpriseUserPassword eup=lookupEnterpriseUserPassword(username,"any-openeai-enterprise.org");
      if (eup==null) {
        System.out.println("["+this.getClass().getSimpleName()+"] No EnterpriseUserPassword found.");
        System.out.println("["+this.getClass().getSimpleName()+"] Authentication request DENIED!.");
        return false;
      }
      String correctPassword = eup.getPassword().getValue();
      if (correctPassword.equals(password)) {
        System.out.println("["+this.getClass().getSimpleName()+"] Credentials are in order.");
        System.out.println("["+this.getClass().getSimpleName()+"] Authentication request GRANTED.");
      } else {
        System.out.println("["+this.getClass().getSimpleName()+"] Password does not match.");
View Full Code Here

Examples of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.EnterpriseUserPassword

        return null;
      }
      eu=(EnterpriseUser)euQueryList.get(0);
      System.out.println("["+this.getClass().getSimpleName()+"] EnterpriseUser found: "+eu);
     
      EnterpriseUserPassword eup=(EnterpriseUserPassword)appConfig.getObject(ENTERPRISE_USER_PASSWORD);
     
      java.util.List returnedEup = eup.query(eu, p2p);
      if (returnedEup.size() == 0) {
        System.out.println("["+this.getClass().getSimpleName()+"] No EnterpriseUserPassword for EnterpriseUser: "+eu);
        return null;
      }
      //return the first the password in the list
View Full Code Here

Examples of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.EnterpriseUserPassword

        if (returnedJeos.size() == 0) {
          // todo - if there's no EnterpriseUserPassword object returned, just
          // populate one with values from uPortal then, when the password reset
          // is done (update handler) do a create instead of an update.
          LogService.log(LogService.INFO, "[EnterpriseUserPasswordQueryHandler] EnterpriseUserPassword doesn't exist, using uPortal info.");
          EnterpriseUserPassword eup = (EnterpriseUserPassword)getAppConfig().getObject(messageObjectName);
          eup.setEnterpriseUser(eu);
          Password p = eup.newPassword();
          p.setValue("eupqhunknown");
          p.setType("secure credential");
          p.setEncryption("cleartext");
          eup.setPassword(p);

//          eup.create((PointToPointProducer)getAppConfig().getObject(producerName));
//          LogService.log(LogService.INFO, "[EnterpriseUserPasswordQueryHandler] EnterpriseUserPassword was created.");
          xml += eup.getXmlEnterpriseObject().toXmlString();
        }
      }
      else {
        xml += "<LightweightPerson><InstitutionalId></InstitutionalId></LightweightPerson>";
      }
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.