org.openid4java.message.Message.hasParameter()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(194)

本文整理了Java中org.openid4java.message.Message.hasParameter()方法的一些代码示例,展示了Message.hasParameter()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.hasParameter()方法的具体详情如下:
包路径:org.openid4java.message.Message
类名称:Message
方法名:hasParameter

Message.hasParameter介绍

暂无

代码示例

代码示例来源:origin: jbufu/openid4java

/**
 * Checks that all required parameters are present
 */
public void validate() throws MessageException
{
  List requiredFields = getRequiredFields();
  Iterator paramIter = _params.getParameters().iterator();
  while (paramIter.hasNext())
  {
    Parameter param = (Parameter) paramIter.next();
    if (!param.isValid())
      throw new MessageException("Invalid parameter: " + param);
  }
  if (requiredFields == null)
    return;
  Iterator reqIter = requiredFields.iterator();
  while(reqIter.hasNext())
  {
    String required = (String) reqIter.next();
    if (! hasParameter(required))
      throw new MessageException(
        "Required parameter missing: " + required);
  }
}

代码示例来源:origin: org.openid4java/openid4java-nodeps

/**
 * Checks that all required parameters are present
 */
public void validate() throws MessageException
{
  List requiredFields = getRequiredFields();
  Iterator paramIter = _params.getParameters().iterator();
  while (paramIter.hasNext())
  {
    Parameter param = (Parameter) paramIter.next();
    if (!param.isValid())
      throw new MessageException("Invalid parameter: " + param);
  }
  if (requiredFields == null)
    return;
  Iterator reqIter = requiredFields.iterator();
  while(reqIter.hasNext())
  {
    String required = (String) reqIter.next();
    if (! hasParameter(required))
      throw new MessageException(
        "Required parameter missing: " + required);
  }
}

代码示例来源:origin: org.openid4java/openid4java

/**
 * Checks that all required parameters are present
 */
public void validate() throws MessageException
{
  List requiredFields = getRequiredFields();
  Iterator paramIter = _params.getParameters().iterator();
  while (paramIter.hasNext())
  {
    Parameter param = (Parameter) paramIter.next();
    if (!param.isValid())
      throw new MessageException("Invalid parameter: " + param);
  }
  if (requiredFields == null)
    return;
  Iterator reqIter = requiredFields.iterator();
  while(reqIter.hasNext())
  {
    String required = (String) reqIter.next();
    if (! hasParameter(required))
      throw new MessageException(
        "Required parameter missing: " + required);
  }
}

代码示例来源:origin: com.cloudbees/openid4java-shaded

/**
 * Checks that all required parameters are present
 */
public void validate() throws MessageException
{
  List requiredFields = getRequiredFields();
  Iterator paramIter = _params.getParameters().iterator();
  while (paramIter.hasNext())
  {
    Parameter param = (Parameter) paramIter.next();
    if (!param.isValid())
      throw new MessageException("Invalid parameter: " + param);
  }
  if (requiredFields == null)
    return;
  Iterator reqIter = requiredFields.iterator();
  while(reqIter.hasNext())
  {
    String required = (String) reqIter.next();
    if (! hasParameter(required))
      throw new MessageException(
        "Required parameter missing: " + required);
  }
}

代码示例来源:origin: org.wso2.org.openid4java/openid4java-nodeps

/**
 * Checks that all required parameters are present
 */
public void validate() throws MessageException {
  List requiredFields = getRequiredFields();
  Iterator paramIter = _params.getParameters().iterator();
  while (paramIter.hasNext()) {
    Parameter param = (Parameter) paramIter.next();
    if (!param.isValid()) {
      throw new MessageException("Invalid parameter: " + param);
    }
  }
  if (requiredFields == null) {
    return;
  }
  Iterator reqIter = requiredFields.iterator();
  while (reqIter.hasNext()) {
    String required = (String) reqIter.next();
    if (!hasParameter(required)) {
      throw new MessageException(
          "Required parameter missing: " + required);
    }
  }
}

代码示例来源:origin: com.cloudbees/openid4java-shaded

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);

代码示例来源:origin: org.openid4java/openid4java

if ( hasParameter("openid.ns") && ! signedParams.contains("ns." + alias))
  throw new MessageException("Namespace declaration for extension "
                + typeUri + " MUST be signed");

代码示例来源:origin: com.cloudbees/openid4java-shaded

if ( hasParameter("openid.ns") && ! signedParams.contains("ns." + alias))
  throw new MessageException("Namespace declaration for extension "
                + typeUri + " MUST be signed");

代码示例来源:origin: jbufu/openid4java

if ( hasParameter("openid.ns") && ! signedParams.contains("ns." + alias))
  throw new MessageException("Namespace declaration for extension "
                + typeUri + " MUST be signed");

代码示例来源:origin: org.openid4java/openid4java

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);

代码示例来源:origin: jbufu/openid4java

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);

相关文章