gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-15 04:14:49 30 4
gpt4 key购买 nike

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

YadisResolver.discover介绍

[英]Performs Yadis discovery on the YadisURL.

  • tries to retrieve the XRDS location via a HEAD call on the Yadis URL
  • retrieves the XRDS document with a GET on the above if available, or through a GET on the YadisURL otherwise

The maximum number of redirects that are followed is determined by the #_maxRedirects member field.
[中]在YadisURL上执行Yadis发现。
*尝试通过Yadis URL上的HEAD调用检索XRD位置
*使用上面的GET检索XRDS文档(如果可用),或者通过YadisURL上的GET检索
遵循的最大重定向数由#_maxRedirects成员字段决定。

代码示例

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

public YadisResult discover(String url, int maxRedirects, Set serviceTypes)
  throws DiscoveryException
{
 return discover(url, maxRedirects, _httpFetcher, serviceTypes);
}

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

public YadisResult discover(String url, int maxRedirects, Set serviceTypes)
  throws DiscoveryException
{
 return discover(url, maxRedirects, _httpFetcher, serviceTypes);
}

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

public YadisResult discover(String url, int maxRedirects, Set serviceTypes)
  throws DiscoveryException
{
 return discover(url, maxRedirects, _httpFetcher, serviceTypes);
}

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

public YadisResult discover(String url, int maxRedirects, Set serviceTypes)
  throws DiscoveryException
{
 return discover(url, maxRedirects, _httpFetcher, serviceTypes);
}

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

public YadisResult discover(String url, int maxRedirects, Set serviceTypes)
    throws DiscoveryException {
  return discover(url, maxRedirects, _httpFetcher, serviceTypes);
}

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

/**
 * Performs Yadis discovery on the YadisURL.
 * <p/>
 * <ul>
 * <li> tries to retrieve the XRDS location via a HEAD call on the Yadis URL
 * <li> retrieves the XRDS document with a GET on the above if available,
 * or through a GET on the YadisURL otherwise
 * </ul>
 *
 * @param url          YadisURL on which discovery will be performed
 * @param maxRedirects The maximum number of redirects to be followed.
 * @return List of DiscoveryInformation entries discovered
 * obtained from the URL Identifier.
 * @see YadisResult
 */
public List discover(String url, int maxRedirects)
    throws DiscoveryException {
  return discover(url, maxRedirects, _httpFetcher);
}

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

/**
 * Performs Yadis discovery on the YadisURL.
 * <p/>
 * <ul>
 * <li> tries to retrieve the XRDS location via a HEAD call on the Yadis URL
 * <li> retrieves the XRDS document with a GET on the above if available,
 * or through a GET on the YadisURL otherwise
 * </ul>
 * <p/>
 * The maximum number of redirects that are followed is determined by the
 * #_maxRedirects member field.
 *
 * @param url YadisURL on which discovery will be performed
 * @return List of DiscoveryInformation entries discovered
 * obtained from the URL Identifier.
 * @see YadisResult #discover(String, int, HttpCache)
 */
public List discover(String url) throws DiscoveryException {
  return discover(url, _maxRedirects, _httpFetcher);
}

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

/**
 * Performs Yadis discovery on the YadisURL.
 * <p>
 * <ul>
 * <li> tries to retrieve the XRDS location via a HEAD call on the Yadis URL
 * <li> retrieves the XRDS document with a GET on the above if available,
 *      or through a GET on the YadisURL otherwise
 * </ul>
 *
 * @param url           YadisURL on which discovery will be performed
 * @param maxRedirects  The maximum number of redirects to be followed.
 * @return              List of DiscoveryInformation entries discovered
 *                      obtained from the URL Identifier.
 * @see YadisResult
 */
public List discover(String url, int maxRedirects)
  throws DiscoveryException
{
 return discover(url, maxRedirects, _httpFetcher);
}

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

/**
 * Performs Yadis discovery on the YadisURL.
 * <p>
 * <ul>
 * <li> tries to retrieve the XRDS location via a HEAD call on the Yadis URL
 * <li> retrieves the XRDS document with a GET on the above if available,
 *      or through a GET on the YadisURL otherwise
 * </ul>
 *
 * @param url           YadisURL on which discovery will be performed
 * @param maxRedirects  The maximum number of redirects to be followed.
 * @return              List of DiscoveryInformation entries discovered
 *                      obtained from the URL Identifier.
 * @see YadisResult
 */
public List discover(String url, int maxRedirects)
  throws DiscoveryException
{
 return discover(url, maxRedirects, _httpFetcher);
}

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

/**
 * Performs Yadis discovery on the YadisURL.
 * <p>
 * <ul>
 * <li> tries to retrieve the XRDS location via a HEAD call on the Yadis URL
 * <li> retrieves the XRDS document with a GET on the above if available,
 *      or through a GET on the YadisURL otherwise
 * </ul>
 *
 * @param url           YadisURL on which discovery will be performed
 * @param maxRedirects  The maximum number of redirects to be followed.
 * @return              List of DiscoveryInformation entries discovered
 *                      obtained from the URL Identifier.
 * @see YadisResult
 */
public List discover(String url, int maxRedirects)
  throws DiscoveryException
{
 return discover(url, maxRedirects, _httpFetcher);
}

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

/**
 * Performs Yadis discovery on the YadisURL.
 * <p>
 * <ul>
 * <li> tries to retrieve the XRDS location via a HEAD call on the Yadis URL
 * <li> retrieves the XRDS document with a GET on the above if available,
 *      or through a GET on the YadisURL otherwise
 * </ul>
 * <p>
 * The maximum number of redirects that are followed is determined by the
 * #_maxRedirects member field.
 *
 * @param url           YadisURL on which discovery will be performed
 * @param httpFetcher   {@link HttpFetcher} object to use for the call
 * @return              List of DiscoveryInformation entries discovered
 *                      obtained from the URL Identifier.
 * @see YadisResult #discover(String, int, HttpCache)
 */
public List discover(String url, HttpFetcher httpFetcher) throws DiscoveryException
{
  return discover(url, _maxRedirects, httpFetcher);
}

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

/**
 * Performs Yadis discovery on the YadisURL.
 * <p>
 * <ul>
 * <li> tries to retrieve the XRDS location via a HEAD call on the Yadis URL
 * <li> retrieves the XRDS document with a GET on the above if available,
 *      or through a GET on the YadisURL otherwise
 * </ul>
 *
 * @param url           YadisURL on which discovery will be performed
 * @param maxRedirects  The maximum number of redirects to be followed.
 * @return              List of DiscoveryInformation entries discovered
 *                      obtained from the URL Identifier.
 * @see YadisResult
 */
public List discover(String url, int maxRedirects)
  throws DiscoveryException
{
 return discover(url, maxRedirects, _httpFetcher);
}

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

/**
 * Performs Yadis discovery on the YadisURL.
 * <p>
 * <ul>
 * <li> tries to retrieve the XRDS location via a HEAD call on the Yadis URL
 * <li> retrieves the XRDS document with a GET on the above if available,
 *      or through a GET on the YadisURL otherwise
 * </ul>
 * <p>
 * The maximum number of redirects that are followed is determined by the
 * #_maxRedirects member field.
 *
 * @param url           YadisURL on which discovery will be performed
 * @return              List of DiscoveryInformation entries discovered
 *                      obtained from the URL Identifier.
 * @see YadisResult #discover(String, int, HttpCache)
 */
public List discover(String url) throws DiscoveryException
{
  return discover(url, _maxRedirects, _httpFetcher);
}

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

/**
 * Performs Yadis discovery on the YadisURL.
 * <p>
 * <ul>
 * <li> tries to retrieve the XRDS location via a HEAD call on the Yadis URL
 * <li> retrieves the XRDS document with a GET on the above if available,
 *      or through a GET on the YadisURL otherwise
 * </ul>
 * <p>
 * The maximum number of redirects that are followed is determined by the
 * #_maxRedirects member field.
 *
 * @param url           YadisURL on which discovery will be performed
 * @return              List of DiscoveryInformation entries discovered
 *                      obtained from the URL Identifier.
 * @see YadisResult #discover(String, int, HttpCache)
 */
public List discover(String url) throws DiscoveryException
{
  return discover(url, _maxRedirects, _httpFetcher);
}

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

/**
 * Performs Relyin Party discovery on the supplied URL.
 *
 * @param url RP's realm or return_to URL
 * @return List of DiscoveryInformation entries discovered
 * from the RP's endpoints
 */
public List discoverRP(String url) throws DiscoveryException {
  return discover(url, 0,
          Collections.singleton(DiscoveryInformation.OPENID2_RP))
      .getDiscoveredInformation(Collections.singleton(DiscoveryInformation.OPENID2_RP));
}

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

/**
 * Performs Relyin Party discovery on the supplied URL.
 *
 * @param url   RP's realm or return_to URL
 * @return      List of DiscoveryInformation entries discovered
 *              from the RP's endpoints
 */
public List discoverRP(String url) throws DiscoveryException
{
  return discover(url, 0,
    Collections.singleton(DiscoveryInformation.OPENID2_RP))
    .getDiscoveredInformation(Collections.singleton(DiscoveryInformation.OPENID2_RP));
}

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

/**
 * Performs Relyin Party discovery on the supplied URL.
 *
 * @param url   RP's realm or return_to URL
 * @return      List of DiscoveryInformation entries discovered
 *              from the RP's endpoints
 */
public List discoverRP(String url) throws DiscoveryException
{
  return discover(url, 0,
    Collections.singleton(DiscoveryInformation.OPENID2_RP))
    .getDiscoveredInformation(Collections.singleton(DiscoveryInformation.OPENID2_RP));
}

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

/**
 * Performs Relyin Party discovery on the supplied URL.
 *
 * @param url   RP's realm or return_to URL
 * @return      List of DiscoveryInformation entries discovered
 *              from the RP's endpoints
 */
public List discoverRP(String url) throws DiscoveryException
{
  return discover(url, 0,
    Collections.singleton(DiscoveryInformation.OPENID2_RP))
    .getDiscoveredInformation(Collections.singleton(DiscoveryInformation.OPENID2_RP));
}

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

/**
 * Performs Relyin Party discovery on the supplied URL.
 *
 * @param url   RP's realm or return_to URL
 * @return      List of DiscoveryInformation entries discovered
 *              from the RP's endpoints
 */
public List discoverRP(String url) throws DiscoveryException
{
  return discover(url, 0,
    Collections.singleton(DiscoveryInformation.OPENID2_RP))
    .getDiscoveredInformation(Collections.singleton(DiscoveryInformation.OPENID2_RP));
}

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

/**
 * Performs Yadis discovery on the YadisURL.
 * <p>
 * <ul>
 * <li> tries to retrieve the XRDS location via a HEAD call on the Yadis URL
 * <li> retrieves the XRDS document with a GET on the above if available,
 *      or through a GET on the YadisURL otherwise
 * </ul>
 *
 * @param url           YadisURL on which discovery will be performed
 * @param maxRedirects  The maximum number of redirects to be followed.
 * @param httpFetcher   {@link HttpFetcher} object to use for the call.
 * @return              List of DiscoveryInformation entries discovered
 *                      obtained from the URL Identifier.
 * @see YadisResult
 */
public List discover(String url, int maxRedirects, HttpFetcher httpFetcher)
  throws DiscoveryException
{
  return discover(url, maxRedirects, httpFetcher, DiscoveryInformation.OPENID_OP_TYPES)
    .getDiscoveredInformation(DiscoveryInformation.OPENID_OP_TYPES);
}

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