本文整理了Java中org.openid4java.message.Message.validate()
方法的一些代码示例,展示了Message.validate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.validate()
方法的具体详情如下:
包路径:org.openid4java.message.Message
类名称:Message
方法名:validate
[英]Checks that all required parameters are present
[中]检查是否存在所有必需的参数
代码示例来源:origin: com.cloudbees/openid4java-shaded
public void validate() throws MessageException
{
super.validate();
String mode = getParameterValue("openid.mode");
if (! MODE_CANCEL.equals(mode))
throw new MessageException(
"Invalid openid.mode; expected " +
MODE_CANCEL + " found: " + mode,
OpenIDException.AUTH_ERROR);
}
}
代码示例来源: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
public void validate() throws MessageException {
super.validate();
String mode = getParameterValue("openid.mode");
if (!MODE_CANCEL.equals(mode)) {
throw new MessageException(
"Invalid openid.mode; expected " +
MODE_CANCEL + " found: " + mode,
OpenIDException.AUTH_ERROR);
}
}
}
代码示例来源: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-nodeps
public void validate() throws MessageException
{
super.validate();
String mode = getParameterValue("openid.mode");
if (! MODE_CANCEL.equals(mode))
throw new MessageException(
"Invalid openid.mode; expected " +
MODE_CANCEL + " found: " + mode,
OpenIDException.AUTH_ERROR);
}
}
代码示例来源:origin: jbufu/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.openid4java/openid4java
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-nodeps
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.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.wso2.org.openid4java/openid4java-nodeps
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.openid4java/openid4java
public void validate() throws MessageException
{
super.validate();
String mode = getParameterValue("openid.mode");
if (! MODE_CANCEL.equals(mode))
throw new MessageException(
"Invalid openid.mode; expected " +
MODE_CANCEL + " found: " + mode,
OpenIDException.AUTH_ERROR);
}
}
代码示例来源:origin: com.cloudbees/openid4java-shaded
public static Message createMessage() throws MessageException
{
Message message = new Message();
message.validate();
if (DEBUG) _log.debug("Created message:\n"
+ message.keyValueFormEncoding());
return message;
}
代码示例来源:origin: com.cloudbees/openid4java-shaded
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: jbufu/openid4java
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: jbufu/openid4java
public void validate() throws MessageException
{
super.validate();
String mode = getParameterValue("openid.mode");
if (! MODE_CANCEL.equals(mode))
throw new MessageException(
"Invalid openid.mode; expected " +
MODE_CANCEL + " found: " + mode,
OpenIDException.AUTH_ERROR);
}
}
代码示例来源:origin: org.openid4java/openid4java-nodeps
public void validate() throws MessageException
{
super.validate();
if (! "true".equals(getParameterValue("is_valid")) &&
! "false".equals(getParameterValue("is_valid")) )
{
throw new MessageException(
"Invalid is_valid value in verification response: "
+ getParameterValue("is_valid"),
OpenIDException.VERIFY_ERROR);
}
}
}
代码示例来源:origin: org.wso2.org.openid4java/openid4java-nodeps
public void validate() throws MessageException {
super.validate();
if (!"true".equals(getParameterValue("is_valid")) &&
!"false".equals(getParameterValue("is_valid"))) {
throw new MessageException(
"Invalid is_valid value in verification response: "
+ getParameterValue("is_valid"),
OpenIDException.VERIFY_ERROR);
}
}
}
代码示例来源:origin: com.cloudbees/openid4java-shaded
public void validate() throws MessageException
{
super.validate();
if (! "true".equals(getParameterValue("is_valid")) &&
! "false".equals(getParameterValue("is_valid")) )
{
throw new MessageException(
"Invalid is_valid value in verification response: "
+ getParameterValue("is_valid"),
OpenIDException.VERIFY_ERROR);
}
}
}
代码示例来源:origin: org.openid4java/openid4java
public void validate() throws MessageException
{
super.validate();
if (! "true".equals(getParameterValue("is_valid")) &&
! "false".equals(getParameterValue("is_valid")) )
{
throw new MessageException(
"Invalid is_valid value in verification response: "
+ getParameterValue("is_valid"),
OpenIDException.VERIFY_ERROR);
}
}
}
代码示例来源:origin: jbufu/openid4java
public void validate() throws MessageException
{
super.validate();
if (! "true".equals(getParameterValue("is_valid")) &&
! "false".equals(getParameterValue("is_valid")) )
{
throw new MessageException(
"Invalid is_valid value in verification response: "
+ getParameterValue("is_valid"),
OpenIDException.VERIFY_ERROR);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!