/** * Process a request for association from the RP * * @param requestParams * @return */ public OpenIDMessage processAssociationRequest(ParameterList requestParams) { return new OpenIDMessage(serverManager.associationResponse(requestParams)); }
/** * Process a request for association from the RP * * @param requestParams * @return */ public OpenIDMessage processAssociationRequest(ParameterList requestParams) { return new OpenIDMessage(serverManager.associationResponse(requestParams)); }
/** * Process a request for association from the RP * * @param requestParams * @return */ public OpenIDMessage processAssociationRequest(ParameterList requestParams) { return new OpenIDMessage(serverManager.associationResponse(requestParams)); }
/** * Gets the association response. Determines the mode first. * If mode is set to associate, will set the response. Then * builds the response parameters next and returns. * * @param request the request * @return the association response */ public Map<String, String> getAssociationResponse(final HttpServletRequest request) { final ParameterList parameters = new ParameterList(request.getParameterMap()); final String mode = parameters.hasParameter(OpenIdProtocolConstants.OPENID_MODE) ? parameters.getParameterValue(OpenIdProtocolConstants.OPENID_MODE) : null; Message response = null; if (StringUtils.equals(mode, OpenIdProtocolConstants.ASSOCIATE)) { response = serverManager.associationResponse(parameters); } final Map<String, String> responseParams = new HashMap<>(); if (response != null) { responseParams.putAll(response.getParameterMap()); } return responseParams; }
/** * Gets the association response. Determines the mode first. * If mode is set to associate, will set the response. Then * builds the response parameters next and returns. * * @param request the request * @return the association response */ public Map<String, String> getAssociationResponse(final HttpServletRequest request) { val parameters = new ParameterList(request.getParameterMap()); val mode = parameters.hasParameter(OpenIdProtocolConstants.OPENID_MODE) ? parameters.getParameterValue(OpenIdProtocolConstants.OPENID_MODE) : null; val response = FunctionUtils.doIf(StringUtils.equals(mode, OpenIdProtocolConstants.ASSOCIATE), () -> this.serverManager.associationResponse(parameters), () -> null) .get(); val responseParams = new HashMap<String, String>(); if (response != null) { responseParams.putAll(response.getParameterMap()); } return responseParams; }
private IncomingRequest doAssociation(HttpServletRequest request, HttpServletResponse response, ServerManager serverManager, ParameterList parameterList) throws IOException, MessageException, AssociationException { /* * If not running over SSL, only allow DH */ if (!request.isSecure()) { AssociationRequest associationRequest = AssociationRequest .createAssociationRequest(parameterList); AssociationSessionType associationSessionType = associationRequest .getType(); if (associationSessionType.getHAlgorithm() == null) { throw new AssociationException("Not running over " + "SSL requires DH."); } } LOG.debug("associate"); Message message = serverManager.associationResponse(parameterList); String keyValueFormEncoding = message.keyValueFormEncoding(); LOG.debug("form encoding: " + keyValueFormEncoding); PrintWriter printWriter = response.getWriter(); printWriter.print(keyValueFormEncoding); return null; }
/** * @param params * @return * @throws Exception */ public String getOpenIDAssociationResponse(OpenIDParameterDTO[] params) { Message message = null; ParameterList paramList = null; paramList = getParameterList(params); message = OpenIDProvider.getInstance().getManager().associationResponse(paramList); return message.keyValueFormEncoding(); }
/** * @param params * @return * @throws Exception */ public String getOpenIDAssociationResponse(OpenIDParameterDTO[] params) { Message message = null; ParameterList paramList = null; paramList = getParameterList(params); message = OpenIDProvider.getInstance().getManager().associationResponse(paramList); return message.keyValueFormEncoding(); }
responsem = manager.associationResponse(requestp); responseText = responsem.keyValueFormEncoding(); } else if ("checkid_setup".equals(mode) || "checkid_immediate".equals(mode)) {
responsem = manager.associationResponse(requestp); responseText = responsem.keyValueFormEncoding(); } else if ("checkid_setup".equals(mode) || "checkid_immediate".equals(mode)) {
responsem = manager.associationResponse(requestp); responseText = responsem.keyValueFormEncoding(); } else if ("checkid_setup".equals(mode) || "checkid_immediate".equals(mode)) {
response = manager.associationResponse(request); responseText = response.keyValueFormEncoding(); } else if ("checkid_setup".equals(mode)
response = manager.associationResponse(request); responseText = response.keyValueFormEncoding(); } else if ("checkid_setup".equals(mode)
response = manager.associationResponse(request); responseText = response.keyValueFormEncoding();
response = manager.associationResponse(request); responseText = response.keyValueFormEncoding();
response = manager.associationResponse(request); responseText = response.keyValueFormEncoding();
response = manager.associationResponse(request); responseText = response.keyValueFormEncoding();