gpt4 book ai didi

org.wso2.carbon.identity.application.authenticator.openid.manager.YahooFetchResponse类的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 23:47:31 27 4
gpt4 key购买 nike

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

YahooFetchResponse介绍

[英]This class is introduced to overcome a bug in Yahoo Fetch Response
[中]引入此类是为了克服Yahoo Fetch响应中的错误

代码示例

代码示例来源:origin: org.wso2.carbon.identity.outbound.auth.openid/org.wso2.carbon.identity.application.authenticator.openid

protected boolean isValid() {
  Iterator it = _parameters.getParameters().iterator();
  while (it.hasNext()) {
    String paramName = ((Parameter) it.next()).getKey();
    if (!paramName.equals("mode") &&
        !paramName.startsWith("type.") &&
        !paramName.startsWith("count.") &&
        !paramName.startsWith("value.") &&
        !paramName.equals("update_url")) {
      log.warn("Invalid parameter name in AX payload: " + paramName);
      //return false;
    }
  }
  return checkAttributes();
}

代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.application.authenticator.openid

public List<String> getAttributeValues(String alias){
  List<String> values = new ArrayList<String>();
  if("unlimited".equalsIgnoreCase(_parameters.getParameterValue("count." + alias))){
    values.add(getParameterValue("value." + alias));
  } else {
    values = super.getAttributeValues(alias);
  }
  return values;
}

代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.application.authenticator.openid

private boolean checkAttributes() {
  List aliases = getAttributeAliases();
      int count = getCount(alias);

代码示例来源:origin: org.wso2.carbon.identity.outbound.auth.openid/org.wso2.carbon.identity.application.authenticator.openid

} catch (MessageException e) {
  fetchResp = new YahooFetchResponse(authSuccess.getParameterMap());

代码示例来源:origin: org.wso2.carbon.identity.outbound.auth.openid/org.wso2.carbon.identity.application.authenticator.openid

private boolean checkAttributes() {
  List aliases = getAttributeAliases();
      int count = getCount(alias);

代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.application.authenticator.openid

} catch (MessageException e) {
  fetchResp = new YahooFetchResponse(authSuccess.getParameterMap());

代码示例来源:origin: org.wso2.carbon.identity.outbound.auth.openid/org.wso2.carbon.identity.application.authenticator.openid

public List<String> getAttributeValues(String alias){
  List<String> values = new ArrayList<String>();
  if("unlimited".equalsIgnoreCase(_parameters.getParameterValue("count." + alias))){
    values.add(getParameterValue("value." + alias));
  } else {
    values = super.getAttributeValues(alias);
  }
  return values;
}

代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.application.authenticator.openid

protected boolean isValid() {
  Iterator it = _parameters.getParameters().iterator();
  while (it.hasNext()) {
    String paramName = ((Parameter) it.next()).getKey();
    if (!paramName.equals("mode") &&
        !paramName.startsWith("type.") &&
        !paramName.startsWith("count.") &&
        !paramName.startsWith("value.") &&
        !paramName.equals("update_url")) {
      log.warn("Invalid parameter name in AX payload: " + paramName);
      //return false;
    }
  }
  return checkAttributes();
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com