Package org.openid4java.message

Examples of org.openid4java.message.Message.keyValueFormEncoding()


            sendXRDSLocation();
            return new StringRepresentation("XRDS Discovery Information");
        } else {
            // --- error response ---
            response = DirectError.createDirectError("Unknown request");
            responseText = response.keyValueFormEncoding();
        }

        // return the result to the user
        return new StringRepresentation(responseText);
    }
View Full Code Here


    Message messageResponse;
    String responseText;
    // --- error response ---
    // When openid.mode = null or does not match any of the standard modes.
    messageResponse = DirectError.createDirectError("Unknown request");
    responseText = messageResponse.keyValueFormEncoding();
    // return the result to the user
    return directResponse(response,messageResponse.keyValueFormEncoding());
  }

  private String checkAuthentication(HttpServletRequest request, HttpServletResponse response, ParameterList parameterList) throws IOException {
View Full Code Here

    // --- error response ---
    // When openid.mode = null or does not match any of the standard modes.
    messageResponse = DirectError.createDirectError("Unknown request");
    responseText = messageResponse.keyValueFormEncoding();
    // return the result to the user
    return directResponse(response,messageResponse.keyValueFormEncoding());
  }

  private String checkAuthentication(HttpServletRequest request, HttpServletResponse response, ParameterList parameterList) throws IOException {
    ServerManager manager = ((SimpleServiceProxy)getServiceProxy()).getServerManager();
    HttpSession session = request.getSession();
View Full Code Here

    Message messageResponse;
    String responseText;
   
    // --- processing a verification request ---
    messageResponse = manager.verify(parameterList);
    responseText = messageResponse.keyValueFormEncoding();
    return directResponse(response, messageResponse.keyValueFormEncoding());
  }

  private String checkId(HttpServletRequest request, HttpServletResponse response, ParameterList parameterList) throws ServletException, IOException {
    ServerManager manager = ((SimpleServiceProxy)getServiceProxy()).getServerManager();
View Full Code Here

    String responseText;
   
    // --- processing a verification request ---
    messageResponse = manager.verify(parameterList);
    responseText = messageResponse.keyValueFormEncoding();
    return directResponse(response, messageResponse.keyValueFormEncoding());
  }

  private String checkId(HttpServletRequest request, HttpServletResponse response, ParameterList parameterList) throws ServletException, IOException {
    ServerManager manager = ((SimpleServiceProxy)getServiceProxy()).getServerManager();
    HttpSession session = request.getSession();
View Full Code Here

    //messageResponse = manager.authResponse(parameterList, userSelectedId, userSelectedClaimedId, true);
    messageResponse = manager.authResponse(parameterList, opLocalId, opLocalId, true);
   

    if (messageResponse instanceof DirectError)
      return directResponse(response, messageResponse.keyValueFormEncoding());
    else {

            try {
        if (authReq.hasExtension(AxMessage.OPENID_NS_AX))
        {
View Full Code Here

    HttpSession session = request.getSession();
    Message messageResponse;
    String responseText;
    // --- process an association parameterList ---
    messageResponse = manager.associationResponse(parameterList);
    responseText = messageResponse.keyValueFormEncoding();
    return directResponse(response, messageResponse.keyValueFormEncoding());
   
  }

  private String directResponse(HttpServletResponse response, String messageResponse)
View Full Code Here

    Message messageResponse;
    String responseText;
    // --- process an association parameterList ---
    messageResponse = manager.associationResponse(parameterList);
    responseText = messageResponse.keyValueFormEncoding();
    return directResponse(response, messageResponse.keyValueFormEncoding());
   
  }

  private String directResponse(HttpServletResponse response, String messageResponse)
            throws IOException
View Full Code Here

        if ("associate".equals(mode))
        {
            // --- process an association request ---
            response = manager.associationResponse(request);
            responseText = response.keyValueFormEncoding();
        }
        else if ("checkid_setup".equals(mode)
                || "checkid_immediate".equals(mode))
        {
            // interact with the user and obtain data needed to continue
View Full Code Here

                    userSelectedId,
                    userSelectedClaimedId,
                    authenticatedAndApproved.booleanValue());

            if (response instanceof DirectError)
                return directResponse(httpResp, response.keyValueFormEncoding());
            else
            {
                // caller will need to decide which of the following to use:

                // option1: GET HTTP-redirect to the return_to URL
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.