Examples of ParameterList


Examples of jj2000.j2k.util.ParameterList

  {
  }
 
  public void decode( String inputFileName, String outputFileName )
  {
    ParameterList defpl;
    String param;
    int i;

    // Get the dfault parameter values
    defpl = new ParameterList();
    for (i=pinfo.length-1; i>=0; i--) {
      if(pinfo[i][3]!=null)
        defpl.put(pinfo[i][0],pinfo[i][3]);
    }

    // Get all parameters from and put them in a parameter list
    pl = new ParameterList(defpl);
    for (i=0; i<pinfo.length; i++) {
      param = getParameter(pinfo[i][0]);
      if (param != null) {
        pl.put(pinfo[i][0],param);
      }
View Full Code Here

Examples of net.fortuna.ical4j.model.ParameterList

                property.setValue("MAILTO:ofbiz-test@example.com");
            } catch (Exception e) {
                Debug.logError(e, "Error while setting Property value: ", module);
            }
        }
        ParameterList parameterList = property.getParameters();
        if (partyAssign != null) {
            replaceParameter(parameterList, toXParameter(partyIdXParamName, partyAssign.getString("partyId")));
            replaceParameter(parameterList, new Cn(makePartyName(partyAssign)));
            replaceParameter(parameterList, toParticipationStatus(partyAssign.getString("assignmentStatusId")));
        }
View Full Code Here

Examples of oauthP5.oauth.ParameterList

    @Override
    protected String getSortedAndEncodedParams(OAuthRequest request) {
      ParameterListExt params = new ParameterListExt();
      params.addAll(request.getQueryStringParams());
      params.addAll(request.getBodyParams());
      params.addAll(new ParameterList(request.getOauthParameters()));
      System.out.println(params.remove(new Parameter("oauth_token", "")));
      return params.sort().asOauthBaseString();
    }
View Full Code Here

Examples of org.junitext.runners.parameters.factory.ParameterList

      ArrayList<Parameter> paramList = new ArrayList<Parameter>();
      paramList.add(new Parameter(new Robot("Daneel Olivaw", 134, "X24R",
          "Han Fastolfe")));
      paramList.add(new Parameter(new Robot("Daneel Olivaw", 134, "X24R",
          "Han Fastolfe")));
      params.add(new ParameterList("Equal Robots", paramList));

      paramList = new ArrayList<Parameter>();
      paramList.add(new Parameter(new Robot("Johnny 5", 5, "SAINT",
          "Nova Laboratories")));
      paramList.add(new Parameter(new Robot("Johnny 5", 5, "SAINT",
          "Nova Laboratories")));
      params.add(new ParameterList("Equal Robots", paramList));

      paramList = new ArrayList<Parameter>();
      paramList.add(new Parameter(new Robot("Johnny 5", 5, "SAINT",
          "Nova Laboratories")));
      paramList.add(new Parameter(new Robot("Daneel Olivaw", 134, "X24R",
          "Han Fastolfe")));
      params.add(new ParameterList("Unequal Robots", paramList));

      paramList = new ArrayList<Parameter>();
      paramList.add(new Parameter(new Robot("Daneel Olivaw", 134, "X24R",
          "Han Fastolfe")));
      paramList.add(new Parameter(new Robot("Johnny 5", 5, "SAINT",
          "Nova Laboratories")));
      params.add(new ParameterList("Unequal Robots", paramList));

      return params;
    }
View Full Code Here

Examples of org.openid4java.message.ParameterList

                }

                // mark the current request type as already tried
                alreadyTried.put(assocReq.getType(), null);

                ParameterList respParams = new ParameterList();
                int status = call(opEndpoint, assocReq, respParams);

                // process the response
                if (status == HttpStatus.SC_OK) // success response
                {
View Full Code Here

Examples of org.openid4java.message.ParameterList

            _log.info("No association found, " +
                      "contacting the OP for direct verification...");

            VerifyRequest vrfy = VerifyRequest.createVerifyRequest(authResp);

            ParameterList responseParams = new ParameterList();

            int respCode = call(op.toString(), vrfy, responseParams);
            if (HttpStatus.SC_OK == respCode)
            {
                VerifyResponse vrfyResp =
View Full Code Here

Examples of org.openid4java.message.ParameterList

  public Identifier verifyResponse(HttpServletRequest httpReq)
      throws ServletException {
    try {
      // extract the parameters from the authentication response
      // (which comes in as a HTTP request from the OpenID provider)
      ParameterList response = new ParameterList(httpReq
          .getParameterMap());

      // retrieve the previously stored discovery information
      DiscoveryInformation discovered = (DiscoveryInformation) httpReq
          .getSession().getAttribute("openid-disc");
View Full Code Here

Examples of org.openid4java.message.ParameterList

                int index = theRealValue.indexOf(":");
                String key = theRealValue.substring(0, index);
                String value = theRealValue.substring(index + 1);
                paramsMap.put(key, value);
            }
            ParameterList response = new ParameterList(paramsMap);

            // verify the response; ConsumerManager needs to be the same
            // (static) instance used to place the authentication request
            VerificationResult verification =
                manager.verify(returnToUrl.toString(), response, discovered);
View Full Code Here

Examples of org.openid4java.message.ParameterList

  private void serveAuthenticationRequest(HttpServletRequest req, HttpServletResponse resp)
      throws ServletException, IOException
  {
    // extract the parameters from the request
        ParameterList request = new ParameterList(req.getParameterMap());

        String mode = request.hasParameter("openid.mode") ?
                request.getParameterValue("openid.mode") : null;

        Message response;
        String responseText;

        if ("associate".equals(mode))
        {
            // --- process an association request ---
            response = manager.associationResponse(request);
            responseText = response.keyValueFormEncoding();
        }
        else if ("checkid_immediate".equals(mode))
        {
          String userSelectedClaimedId = (String) request.getParameter("openid.claimed_id").getValue();
         
            String realm = (String) request.getParameter("openid.realm").getValue();
           
            if (!isTrustedRealm(realm, userSelectedClaimedId)) {
                response = DirectError.createDirectError("checkid_immediate is not supported");
                responseText = response.keyValueFormEncoding();
                directResponse(resp, responseText);
View Full Code Here

Examples of org.openid4java.message.ParameterList

    }
    log.debug("Receiving URL = '{}", receivingURL.toString());

    // Extract the parameters from the authentication response
    // (which comes in as a HTTP request from the OpenID provider)
    ParameterList parameterList = new ParameterList(request.getParameterMap());

    try {

      // Verify the response
      // ConsumerManager needs to be the same (static) instance used
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.