gpt4 book ai didi

org.openid4java.discovery.yadis.YadisResult.setXrdsLocation()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 10:17:31 27 4
gpt4 key购买 nike

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

YadisResult.setXrdsLocation介绍

[英]Sets the Yadis Resource Descriptor (XRDS) location found during discovery.

The XRDS location can be the same as the YadisUrl, or different if redirects are followed during discovery, or if delegation is used.
[中]设置在发现过程中找到的Yadis资源描述符(XRD)位置。
XRD的位置可以与YadisUrl相同,如果在发现过程中遵循重定向,或者使用委派,则XRD的位置可以不同。

代码示例

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

public YadisResult discover(String url, int maxRedirects, HttpFetcher httpFetcher, Set serviceTypes)
  throws DiscoveryException
{
  YadisUrl yadisUrl = new YadisUrl(url);
  // try to retrieve the Yadis Descriptor URL with a HEAD call first
  YadisResult result = retrieveXrdsLocation(yadisUrl, false, maxRedirects, serviceTypes);
  // try GET 
  if (result.getXrdsLocation() == null)
    result = retrieveXrdsLocation(yadisUrl, true, maxRedirects, serviceTypes);
  if (result.getXrdsLocation() != null)
  {
    retrieveXrdsDocument(result, maxRedirects, serviceTypes);
  }
  else if (result.hasEndpoints())
  {
    // report the yadis url as the xrds location
    result.setXrdsLocation(url, OpenIDException.YADIS_INVALID_URL);
  }
  _log.info("Yadis discovered " + result.getEndpointCount() + " endpoints from: " + url);
  return result;
}

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

public YadisResult discover(String url, int maxRedirects, HttpFetcher httpFetcher, Set serviceTypes)
    throws DiscoveryException {
  YadisUrl yadisUrl = new YadisUrl(url);
  // try to retrieve the Yadis Descriptor URL with a HEAD call first
  YadisResult result = retrieveXrdsLocation(yadisUrl, false, maxRedirects, serviceTypes);
  // try GET 
  if (result.getXrdsLocation() == null) {
    result = retrieveXrdsLocation(yadisUrl, true, maxRedirects, serviceTypes);
  }
  if (result.getXrdsLocation() != null) {
    retrieveXrdsDocument(result, maxRedirects, serviceTypes);
  } else if (result.hasEndpoints()) {
    // report the yadis url as the xrds location
    result.setXrdsLocation(url, OpenIDException.YADIS_INVALID_URL);
  }
  _log.info("Yadis discovered " + result.getEndpointCount() + " endpoints from: " + url);
  return result;
}

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

public YadisResult discover(String url, int maxRedirects, HttpFetcher httpFetcher, Set serviceTypes)
  throws DiscoveryException
{
  YadisUrl yadisUrl = new YadisUrl(url);
  // try to retrieve the Yadis Descriptor URL with a HEAD call first
  YadisResult result = retrieveXrdsLocation(yadisUrl, false, maxRedirects, serviceTypes);
  // try GET 
  if (result.getXrdsLocation() == null)
    result = retrieveXrdsLocation(yadisUrl, true, maxRedirects, serviceTypes);
  if (result.getXrdsLocation() != null)
  {
    retrieveXrdsDocument(result, maxRedirects, serviceTypes);
  }
  else if (result.hasEndpoints())
  {
    // report the yadis url as the xrds location
    result.setXrdsLocation(url, OpenIDException.YADIS_INVALID_URL);
  }
  _log.info("Yadis discovered " + result.getEndpointCount() + " endpoints from: " + url);
  return result;
}

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

public YadisResult discover(String url, int maxRedirects, HttpFetcher httpFetcher, Set serviceTypes)
  throws DiscoveryException
{
  YadisUrl yadisUrl = new YadisUrl(url);
  // try to retrieve the Yadis Descriptor URL with a HEAD call first
  YadisResult result = retrieveXrdsLocation(yadisUrl, false, maxRedirects, serviceTypes);
  // try GET 
  if (result.getXrdsLocation() == null)
    result = retrieveXrdsLocation(yadisUrl, true, maxRedirects, serviceTypes);
  if (result.getXrdsLocation() != null)
  {
    retrieveXrdsDocument(result, maxRedirects, serviceTypes);
  }
  else if (result.hasEndpoints())
  {
    // report the yadis url as the xrds location
    result.setXrdsLocation(url, OpenIDException.YADIS_INVALID_URL);
  }
  _log.info("Yadis discovered " + result.getEndpointCount() + " endpoints from: " + url);
  return result;
}

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

public YadisResult discover(String url, int maxRedirects, HttpFetcher httpFetcher, Set serviceTypes)
  throws DiscoveryException
{
  YadisUrl yadisUrl = new YadisUrl(url);
  // try to retrieve the Yadis Descriptor URL with a HEAD call first
  YadisResult result = retrieveXrdsLocation(yadisUrl, false, maxRedirects, serviceTypes);
  // try GET 
  if (result.getXrdsLocation() == null)
    result = retrieveXrdsLocation(yadisUrl, true, maxRedirects, serviceTypes);
  if (result.getXrdsLocation() != null)
  {
    retrieveXrdsDocument(result, maxRedirects, serviceTypes);
  }
  else if (result.hasEndpoints())
  {
    // report the yadis url as the xrds location
    result.setXrdsLocation(url, OpenIDException.YADIS_INVALID_URL);
  }
  _log.info("Yadis discovered " + result.getEndpointCount() + " endpoints from: " + url);
  return result;
}

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

result.setXrdsLocation(resp.getFinalUri(), OpenIDException.YADIS_GET_INVALID_RESPONSE);

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

result.setXrdsLocation(resp.getFinalUri(), OpenIDException.YADIS_GET_INVALID_RESPONSE);

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

result.setXrdsLocation(resp.getFinalUri(), OpenIDException.YADIS_GET_INVALID_RESPONSE);

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

result.setXrdsLocation(resp.getFinalUri(), OpenIDException.YADIS_GET_INVALID_RESPONSE);

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

result.setXrdsLocation(locationHeaders[0].getValue(),
  useGet ? OpenIDException.YADIS_GET_INVALID_RESPONSE :
    OpenIDException.YADIS_HEAD_INVALID_RESPONSE);
  result.setXrdsLocation(xrdsLocation,
    OpenIDException.YADIS_GET_INVALID_RESPONSE);

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

result.setXrdsLocation(locationHeaders[0].getValue(),
  useGet ? OpenIDException.YADIS_GET_INVALID_RESPONSE :
    OpenIDException.YADIS_HEAD_INVALID_RESPONSE);
  result.setXrdsLocation(xrdsLocation,
    OpenIDException.YADIS_GET_INVALID_RESPONSE);

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

} else if (locationHeaders != null && locationHeaders.length > 0) {
  result.setXrdsLocation(locationHeaders[0].getValue(),
              useGet ? OpenIDException.YADIS_GET_INVALID_RESPONSE :
              OpenIDException.YADIS_HEAD_INVALID_RESPONSE);
  if (xrdsLocation != null) {
    result.setNormalizedUrl(resp.getFinalUri());
    result.setXrdsLocation(xrdsLocation,
                OpenIDException.YADIS_GET_INVALID_RESPONSE);

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

result.setXrdsLocation(locationHeaders[0].getValue(),
  useGet ? OpenIDException.YADIS_GET_INVALID_RESPONSE :
    OpenIDException.YADIS_HEAD_INVALID_RESPONSE);
  result.setXrdsLocation(xrdsLocation,
    OpenIDException.YADIS_GET_INVALID_RESPONSE);

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

result.setXrdsLocation(resp.getFinalUri(), OpenIDException.YADIS_GET_INVALID_RESPONSE);

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

result.setXrdsLocation(locationHeaders[0].getValue(),
  useGet ? OpenIDException.YADIS_GET_INVALID_RESPONSE :
    OpenIDException.YADIS_HEAD_INVALID_RESPONSE);
  result.setXrdsLocation(xrdsLocation,
    OpenIDException.YADIS_GET_INVALID_RESPONSE);

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