- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.openid4java.discovery.yadis.YadisResolver
类的一些代码示例,展示了YadisResolver
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YadisResolver
类的具体详情如下:
包路径:org.openid4java.discovery.yadis.YadisResolver
类名称:YadisResolver
[英]Yadis discovery protocol implementation.
Yadis discovery protocol returns a Yadis Resource Descriptor (XRDS) document associated with a Yadis Identifier (YadisID)
YadisIDs can be any type of identifiers that are resolvable to a URL form, and in addition the URL form uses a HTTP or a HTTPS schema. Such an URL is defined by the Yadis speficification as a YadisURL. This functionality is implemented by the YadisURL helper class.
The discovery of the XRDS document is performed by the discover method on a YadisUrl.
Internal parameters used during the discovery process :
代码示例来源:origin: org.openid4java/openid4java-nodeps
public YadisResult discover(String url, int maxRedirects, Set serviceTypes)
throws DiscoveryException
{
return discover(url, maxRedirects, _httpFetcher, serviceTypes);
}
代码示例来源:origin: org.openid4java/openid4java-nodeps
/**
* Performs discovery on the Relying Party's realm and returns a list of
* OpenID 2.0 DiscoveryInformation entries.
* <p>
* Static method / caller must provide a YadisResolver so that
* the OP doesn't have to instantiate a Discovery object.
*
* @param realm RP's realm.
* @param yadisResolver The YadisResolver instance to be used for discovery.
* @return List of OpenID 2.0 DiscoveryInformation endpoints.
*/
public static List rpDiscovery(String realm, YadisResolver yadisResolver)
throws DiscoveryException
{
// don't follow redirects when doing RP discovery
return yadisResolver.discoverRP(realm);
}
代码示例来源:origin: org.openid4java/openid4java-nodeps
/**
* Constructs a ServerManager with default settings.
*/
public ServerManager() {
this(new RealmVerifierFactory(new YadisResolver(new HttpFetcherFactory())));
}
代码示例来源: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: org.openid4java/openid4java
String xrdsLocation = getHtmlMeta(resp.getBody());
if (xrdsLocation != null)
代码示例来源:origin: com.cloudbees/openid4java-shaded
/**
* Constructs a ServerManager with default settings.
*/
public ServerManager() {
this(new RealmVerifierFactory(new YadisResolver(new HttpFetcherFactory())));
}
代码示例来源: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: jbufu/openid4java
String xrdsLocation = getHtmlMeta(resp.getBody());
if (xrdsLocation != null)
代码示例来源:origin: org.wso2.org.openid4java/openid4java-nodeps
/**
* Constructs a ServerManager with default settings.
*/
public ServerManager() {
this(new RealmVerifierFactory(new YadisResolver(new HttpFetcherFactory())));
}
代码示例来源:origin: jbufu/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, 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
/**
* Performs discovery on the Relying Party's realm and returns a list of
* OpenID 2.0 DiscoveryInformation entries.
* <p/>
* Static method / caller must provide a YadisResolver so that
* the OP doesn't have to instantiate a Discovery object.
*
* @param realm RP's realm.
* @param yadisResolver The YadisResolver instance to be used for discovery.
* @return List of OpenID 2.0 DiscoveryInformation endpoints.
*/
public static List rpDiscovery(String realm, YadisResolver yadisResolver)
throws DiscoveryException {
// don't follow redirects when doing RP discovery
return yadisResolver.discoverRP(realm);
}
代码示例来源:origin: org.wso2.org.openid4java/openid4java-nodeps
} else if (resp.getBody() != null) {
String xrdsLocation = getHtmlMeta(resp.getBody());
if (xrdsLocation != null) {
result.setNormalizedUrl(resp.getFinalUri());
代码示例来源:origin: jbufu/openid4java
/**
* Constructs a ServerManager with default settings.
*/
public ServerManager() {
this(new RealmVerifierFactory(new YadisResolver(new HttpFetcherFactory())));
}
代码示例来源:origin: com.cloudbees/openid4java-shaded
public YadisResult discover(String url, int maxRedirects, Set serviceTypes)
throws DiscoveryException
{
return discover(url, maxRedirects, _httpFetcher, serviceTypes);
}
代码示例来源: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: com.cloudbees/openid4java-shaded
/**
* Performs discovery on the Relying Party's realm and returns a list of
* OpenID 2.0 DiscoveryInformation entries.
* <p>
* Static method / caller must provide a YadisResolver so that
* the OP doesn't have to instantiate a Discovery object.
*
* @param realm RP's realm.
* @param yadisResolver The YadisResolver instance to be used for discovery.
* @return List of OpenID 2.0 DiscoveryInformation endpoints.
*/
public static List rpDiscovery(String realm, YadisResolver yadisResolver)
throws DiscoveryException
{
// don't follow redirects when doing RP discovery
return yadisResolver.discoverRP(realm);
}
代码示例来源:origin: org.openid4java/openid4java-nodeps
String xrdsLocation = getHtmlMeta(resp.getBody());
if (xrdsLocation != null)
代码示例来源:origin: org.openid4java/openid4java
/**
* Constructs a ServerManager with default settings.
*/
public ServerManager() {
this(new RealmVerifierFactory(new YadisResolver(new HttpFetcherFactory())));
}
代码示例来源:origin: org.openid4java/openid4java
public YadisResult discover(String url, int maxRedirects, Set serviceTypes)
throws DiscoveryException
{
return discover(url, maxRedirects, _httpFetcher, serviceTypes);
}
本文整理了Java中org.openid4java.discovery.yadis.YadisResolver.retrieveXrdsDocument()方法的一些代码示例,展示了YadisReso
本文整理了Java中org.openid4java.discovery.yadis.YadisResolver.discover()方法的一些代码示例,展示了YadisResolver.discove
本文整理了Java中org.openid4java.discovery.yadis.YadisResolver.retrieveXrdsLocation()方法的一些代码示例,展示了YadisReso
本文整理了Java中org.openid4java.discovery.yadis.YadisResolver.()方法的一些代码示例,展示了YadisResolver.()的具体用法。这些代码示例主
本文整理了Java中org.openid4java.discovery.yadis.YadisResolver.discoverRP()方法的一些代码示例,展示了YadisResolver.disco
本文整理了Java中org.openid4java.discovery.yadis.YadisResolver.getHtmlMeta()方法的一些代码示例,展示了YadisResolver.getH
我是一名优秀的程序员,十分优秀!