|| !authSuccess.hasExtension(AxMessage.OPENID_NS_AX)) { return Collections.emptyList(); MessageExtension ext = authSuccess.getExtension(AxMessage.OPENID_NS_AX); if (ext instanceof FetchResponse) { FetchResponse fetchResp = (FetchResponse) ext;
public static Message createMessage() throws MessageException { Message message = new Message(); message.validate(); if (DEBUG) _log.debug("Created message:\n" + message.keyValueFormEncoding()); return message; }
if (hasExtensionFactory(typeUri)) { MessageExtensionFactory extensionFactory = getExtensionFactory(typeUri); String mode = getParameterValue("openid.mode"); getExtensionParams(typeUri), mode.startsWith("checkid_")); ((AuthSuccess) this).getSignList().split(",")); String alias = getExtensionAlias(typeUri);
responseText = response.keyValueFormEncoding(); } else if ("checkid_setup".equals(mode) || "checkid_immediate".equals(mode)) { return directResponse(httpResp, response.keyValueFormEncoding()); } else { if (authReq.hasExtension(AxMessage.OPENID_NS_AX)) { response.addExtension(fetchResp); response.addExtension(sregResp); return response.getDestinationUrl(true); responseText = response.keyValueFormEncoding(); } else { responseText = response.keyValueFormEncoding();
public String getResponseText() { return message.keyValueFormEncoding(); } }
responseText = response.keyValueFormEncoding(); } else if ("checkid_setup".equals(mode) || "checkid_immediate".equals(mode)) { @SuppressWarnings("unchecked") Map<String, String> m = (Map<String, String>) response .getParameterMap(); for (String key : m.keySet()) { f.add(key, m.get(key)); redirectSeeOther(response.getDestinationUrl(true)); return new EmptyRepresentation(); log.info("OpenID : " + response.keyValueFormEncoding()); responseText = response.keyValueFormEncoding(); } else if (Method.GET.equals(getMethod())) { responseText = response.keyValueFormEncoding();
if (hasExtension(extensionTypeUri)) String extensionAlias = getExtensionAlias(extensionTypeUri); Iterator iter = getParameters().iterator(); while (iter.hasNext())
/** * Gets the OpenID message as a ParameterList. * * @return ParameterList containing the OpenID message. */ public ParameterList getOpenIDParams() { return new ParameterList(_openidMessage.getParameterMap()); }
if (hasExtension(typeUri)) throw new MessageException("Extension already present: " + typeUri); preferredAlias : "ext" + Integer.toString(++ _extCounter); if (! hasParameter("openid.ns") && preferredAlias != null && ! alias.equals(preferredAlias)) throw new MessageException("Cannot add (pseudo) extension to v1 message for alias: " + preferredAlias); set("openid.ns." + alias, typeUri); "openid." + alias; set(paramName, param.getValue());
destinationUrl = message.getDestinationUrl(true); response.setDestinationUrl(destinationUrl); response.setValidated(false); requestDTO.getProfileName(), requestDTO); if (messageExtension != null) { message.addExtension(messageExtension); AuthSuccess authSuccess = (AuthSuccess) message; authSuccess.addSignExtension((String) alias); destinationUrl = message.getDestinationUrl(true); response.setDestinationUrl(destinationUrl); response.setValidated(true);
if (hasExtension(typeUri)) throw new MessageException("Extension already present: " + typeUri); + typeUri + " alias: " +alias); set("openid.ns." + alias, typeUri); "openid." + alias; set(paramName, param.getValue());
/** * Adds a set of extension-specific parameters to a message. * <p> * The parameter names must NOT contain the "openid.<extension_alias>" * prefix; it will be generated dynamically, ensuring there are no conflicts * between extensions. * * @param extension A MessageExtension containing parameters * to be added to the message */ public void addExtension(MessageExtension extension) throws MessageException { addExtension(extension, null); }
public static Message createMessage(ParameterList params) throws MessageException { Message message = new Message(params); message.validate(); if (DEBUG) { _log.debug("Created message from parameter list:\n" + message.keyValueFormEncoding()); } return message; }
if (hasExtensionFactory(typeUri)) MessageExtensionFactory extensionFactory = getExtensionFactory(typeUri); String mode = getParameterValue("openid.mode"); getExtensionParams(typeUri), mode.startsWith("checkid_")); ((AuthSuccess)this).getSignList().split(",") ); String alias = getExtensionAlias(typeUri); if ( hasParameter("openid.ns") && ! signedParams.contains("ns." + alias)) throw new MessageException("Namespace declaration for extension " + typeUri + " MUST be signed");
responseText = response.keyValueFormEncoding(); return directResponse(httpResp, response.keyValueFormEncoding()); else response.addExtension(fetchResp); response.addExtension(sregResp); return response.getDestinationUrl(true); responseText = response.keyValueFormEncoding(); responseText = response.keyValueFormEncoding();
public String getResponseText() { return message.keyValueFormEncoding(); } }
if (hasExtension(extensionTypeUri)) String extensionAlias = getExtensionAlias(extensionTypeUri); Iterator iter = getParameters().iterator(); while (iter.hasNext())
/** * Gets the OpenID message as a ParameterList. * @return ParameterList containing the OpenID message. */ public ParameterList getOpenIDParams() { return new ParameterList(_openidMessage.getParameterMap()); }
if (hasExtension(typeUri)) throw new MessageException("Extension already present: " + typeUri); preferredAlias : "ext" + Integer.toString(++ _extCounter); if (! hasParameter("openid.ns") && preferredAlias != null && ! alias.equals(preferredAlias)) throw new MessageException("Cannot add (pseudo) extension to v1 message for alias: " + preferredAlias); set("openid.ns." + alias, typeUri); "openid." + alias; set(paramName, param.getValue());
destinationUrl = message.getDestinationUrl(true); response.setDestinationUrl(destinationUrl); response.setValidated(false); requestDTO.getProfileName(), requestDTO); if (messageExtension != null) { message.addExtension(messageExtension); AuthSuccess authSuccess = (AuthSuccess) message; authSuccess.addSignExtension((String) alias); destinationUrl = message.getDestinationUrl(true); response.setDestinationUrl(destinationUrl); response.setValidated(true);