本文整理了Java中org.openid4java.message.Message
类的一些代码示例,展示了Message
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message
类的具体详情如下:
包路径:org.openid4java.message.Message
类名称:Message
暂无
代码示例来源:origin: spring-projects/spring-security
|| !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;
代码示例来源:origin: org.openid4java/openid4java
public static Message createMessage() throws MessageException
{
Message message = new Message();
message.validate();
if (DEBUG) _log.debug("Created message:\n"
+ message.keyValueFormEncoding());
return message;
}
代码示例来源:origin: org.wso2.org.openid4java/openid4java-nodeps
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);
代码示例来源:origin: org.wso2.org.openid4java/openid4java-nodeps
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();
代码示例来源:origin: org.picketlink/picketlink-consolidated-social
public String getResponseText() {
return message.keyValueFormEncoding();
}
}
代码示例来源:origin: org.restlet.jse/org.restlet.example
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();
代码示例来源:origin: jbufu/openid4java
if (hasExtension(extensionTypeUri))
String extensionAlias = getExtensionAlias(extensionTypeUri);
Iterator iter = getParameters().iterator();
while (iter.hasNext())
代码示例来源:origin: org.wso2.org.openid4java/openid4java-nodeps
/**
* Gets the OpenID message as a ParameterList.
*
* @return ParameterList containing the OpenID message.
*/
public ParameterList getOpenIDParams() {
return new ParameterList(_openidMessage.getParameterMap());
}
代码示例来源:origin: org.openid4java/openid4java
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());
代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.provider
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);
代码示例来源:origin: org.openid4java/openid4java-nodeps
if (hasExtension(typeUri))
throw new MessageException("Extension already present: " + typeUri);
+ typeUri + " alias: " +alias);
set("openid.ns." + alias, typeUri);
"openid." + alias;
set(paramName, param.getValue());
代码示例来源:origin: org.openid4java/openid4java
/**
* 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);
}
代码示例来源:origin: org.wso2.org.openid4java/openid4java-nodeps
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;
}
代码示例来源:origin: org.openid4java/openid4java
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");
代码示例来源:origin: org.openid4java/openid4java-nodeps
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();
代码示例来源:origin: picketlink/picketlink
public String getResponseText() {
return message.keyValueFormEncoding();
}
}
代码示例来源:origin: org.openid4java/openid4java
if (hasExtension(extensionTypeUri))
String extensionAlias = getExtensionAlias(extensionTypeUri);
Iterator iter = getParameters().iterator();
while (iter.hasNext())
代码示例来源:origin: org.openid4java/openid4java-nodeps
/**
* Gets the OpenID message as a ParameterList.
* @return ParameterList containing the OpenID message.
*/
public ParameterList getOpenIDParams()
{
return new ParameterList(_openidMessage.getParameterMap());
}
代码示例来源:origin: jbufu/openid4java
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());
代码示例来源:origin: org.wso2.carbon.identity.inbound.auth.openid/org.wso2.carbon.identity.provider
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);
内容来源于网络,如有侵权,请联系作者删除!