- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.openid4java.discovery.yadis.YadisException
类的一些代码示例,展示了YadisException
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YadisException
类的具体详情如下:
包路径:org.openid4java.discovery.yadis.YadisException
类名称:YadisException
暂无
代码示例来源:origin: org.wso2.org.openid4java/openid4java-nodeps
/**
* Constructs a URL object from a string;
* needed by the YadisURL(String) constructor
*
* @param urlString URL-type identifier in string format
* @return URL object
* @throws YadisException if the provided string is not a valid URL
*/
private static URL urlFromString(String urlString) throws YadisException {
URL url;
try {
url = new URL(urlString);
} catch (MalformedURLException e) {
throw new YadisException("Invalid URL: " + urlString,
OpenIDException.YADIS_INVALID_URL, e);
}
return url;
}
代码示例来源:origin: org.wso2.carbon.identity.agent.sso.java/org.wso2.carbon.identity.sso.agent
if (e.getErrorCode() == 1796) {
throw new SSOAgentException(e.getMessage(), e);
代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.sso.agent
if (e.getErrorCode() == 1796) {
throw new SSOAgentException(e.getMessage(), e);
代码示例来源:origin: org.openid4java/openid4java
/**
* Constructs a URL object from a string;
* needed by the YadisURL(String) constructor
*
* @param urlString URL-type identifier in string format
* @return URL object
* @throws YadisException if the provided string is not a valid URL
*/
private static URL urlFromString(String urlString) throws YadisException
{
URL url;
try
{
url = new URL(urlString);
}
catch (MalformedURLException e)
{
throw new YadisException("Invalid URL: " + urlString,
OpenIDException.YADIS_INVALID_URL, e);
}
return url;
}
代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.application.authenticator.openid
if (e.getErrorCode() == 1796) {
throw new OpenIDException(e.getMessage(), e);
代码示例来源:origin: org.openid4java/openid4java-nodeps
/**
* Constructs a URL object from a string;
* needed by the YadisURL(String) constructor
*
* @param urlString URL-type identifier in string format
* @return URL object
* @throws YadisException if the provided string is not a valid URL
*/
private static URL urlFromString(String urlString) throws YadisException
{
URL url;
try
{
url = new URL(urlString);
}
catch (MalformedURLException e)
{
throw new YadisException("Invalid URL: " + urlString,
OpenIDException.YADIS_INVALID_URL, e);
}
return url;
}
if (e.getErrorCode() == 1796) {
throw new OpenIDException(e.getMessage(), e);
代码示例来源:origin: com.cloudbees/openid4java-shaded
/**
* Constructs a URL object from a string;
* needed by the YadisURL(String) constructor
*
* @param urlString URL-type identifier in string format
* @return URL object
* @throws YadisException if the provided string is not a valid URL
*/
private static URL urlFromString(String urlString) throws YadisException
{
URL url;
try
{
url = new URL(urlString);
}
catch (MalformedURLException e)
{
throw new YadisException("Invalid URL: " + urlString,
OpenIDException.YADIS_INVALID_URL, e);
}
return url;
}
代码示例来源:origin: jbufu/openid4java
/**
* Constructs a URL object from a string;
* needed by the YadisURL(String) constructor
*
* @param urlString URL-type identifier in string format
* @return URL object
* @throws YadisException if the provided string is not a valid URL
*/
private static URL urlFromString(String urlString) throws YadisException
{
URL url;
try
{
url = new URL(urlString);
}
catch (MalformedURLException e)
{
throw new YadisException("Invalid URL: " + urlString,
OpenIDException.YADIS_INVALID_URL, e);
}
return url;
}
代码示例来源:origin: jbufu/openid4java
/**
* Constructs a YadisURL from a URL object;
* insures the schema is HTTP or HTTPS
*
* @param urlId URL identifier
* @throws YadisException tf the URL identifier is not a valid YadisURL
*/
public YadisUrl(URL urlId) throws YadisException
{
if (isValid(urlId))
_yadisUrl = urlId;
else
throw new YadisException(
"The scheme name of a Yadis URL must be 'http' or 'https'",
OpenIDException.YADIS_INVALID_SCHEME);
}
代码示例来源:origin: org.openid4java/openid4java
/**
* Constructs a YadisURL from a URL object;
* insures the schema is HTTP or HTTPS
*
* @param urlId URL identifier
* @throws YadisException tf the URL identifier is not a valid YadisURL
*/
public YadisUrl(URL urlId) throws YadisException
{
if (isValid(urlId))
_yadisUrl = urlId;
else
throw new YadisException(
"The scheme name of a Yadis URL must be 'http' or 'https'",
OpenIDException.YADIS_INVALID_SCHEME);
}
代码示例来源:origin: org.openid4java/openid4java-nodeps
/**
* Constructs a YadisURL from a URL object;
* insures the schema is HTTP or HTTPS
*
* @param urlId URL identifier
* @throws YadisException tf the URL identifier is not a valid YadisURL
*/
public YadisUrl(URL urlId) throws YadisException
{
if (isValid(urlId))
_yadisUrl = urlId;
else
throw new YadisException(
"The scheme name of a Yadis URL must be 'http' or 'https'",
OpenIDException.YADIS_INVALID_SCHEME);
}
代码示例来源:origin: org.wso2.org.openid4java/openid4java-nodeps
/**
* Constructs a YadisURL from a URL object;
* insures the schema is HTTP or HTTPS
*
* @param urlId URL identifier
* @throws YadisException tf the URL identifier is not a valid YadisURL
*/
public YadisUrl(URL urlId) throws YadisException {
if (isValid(urlId)) {
_yadisUrl = urlId;
} else {
throw new YadisException(
"The scheme name of a Yadis URL must be 'http' or 'https'",
OpenIDException.YADIS_INVALID_SCHEME);
}
}
代码示例来源:origin: com.cloudbees/openid4java-shaded
/**
* Constructs a YadisURL from a URL object;
* insures the schema is HTTP or HTTPS
*
* @param urlId URL identifier
* @throws YadisException tf the URL identifier is not a valid YadisURL
*/
public YadisUrl(URL urlId) throws YadisException
{
if (isValid(urlId))
_yadisUrl = urlId;
else
throw new YadisException(
"The scheme name of a Yadis URL must be 'http' or 'https'",
OpenIDException.YADIS_INVALID_SCHEME);
}
代码示例来源:origin: org.wso2.org.openid4java/openid4java-nodeps
/**
* Parses the HTML input stream and scans for the Yadis XRDS location
* in the HTML HEAD Meta tags.
*
* @param input input data stream
* @return String the XRDS location URL, or null if not found
* @throws YadisException on parsing errors or Yadis protocal violations
*/
private String getHtmlMeta(String input) throws YadisException {
String xrdsLocation;
if (input == null) {
throw new YadisException("Cannot download HTML message",
OpenIDException.YADIS_HTMLMETA_DOWNLOAD_ERROR);
}
xrdsLocation = YADIS_HTML_PARSER.getHtmlMeta(input);
if (DEBUG) {
_log.debug("input:\n" + input);
_log.debug("xrdsLocation: " + xrdsLocation);
}
return xrdsLocation;
}
代码示例来源:origin: org.wso2.org.openid4java/openid4java-nodeps
(!xrdsUrl.getProtocol().equals("http") &&
!xrdsUrl.getProtocol().equals("https"))) {
throw new YadisException("A Yadis Resource Descriptor URL" +
" MUST be an absolute URL and " +
"it must be HTTP or HTTPS; found: " + xrdsLocation,
代码示例来源:origin: org.openid4java/openid4java-nodeps
/**
* Parses the HTML input stream and scans for the Yadis XRDS location
* in the HTML HEAD Meta tags.
*
* @param input input data stream
* @return String the XRDS location URL, or null if not found
* @throws YadisException on parsing errors or Yadis protocal violations
*/
private String getHtmlMeta(String input) throws YadisException
{
String xrdsLocation;
if (input == null)
throw new YadisException("Cannot download HTML message",
OpenIDException.YADIS_HTMLMETA_DOWNLOAD_ERROR);
xrdsLocation = YADIS_HTML_PARSER.getHtmlMeta(input);
if (DEBUG)
{
_log.debug("input:\n" + input);
_log.debug("xrdsLocation: " + xrdsLocation);
}
return xrdsLocation;
}
代码示例来源:origin: org.openid4java/openid4java
/**
* Parses the HTML input stream and scans for the Yadis XRDS location
* in the HTML HEAD Meta tags.
*
* @param input input data stream
* @return String the XRDS location URL, or null if not found
* @throws YadisException on parsing errors or Yadis protocal violations
*/
private String getHtmlMeta(String input) throws YadisException
{
String xrdsLocation;
if (input == null)
throw new YadisException("Cannot download HTML message",
OpenIDException.YADIS_HTMLMETA_DOWNLOAD_ERROR);
xrdsLocation = YADIS_HTML_PARSER.getHtmlMeta(input);
if (DEBUG)
{
_log.debug("input:\n" + input);
_log.debug("xrdsLocation: " + xrdsLocation);
}
return xrdsLocation;
}
代码示例来源:origin: org.openid4java/openid4java-nodeps
( ! xrdsUrl.getProtocol().equals("http") &&
! xrdsUrl.getProtocol().equals("https")) )
throw new YadisException("A Yadis Resource Descriptor URL" +
" MUST be an absolute URL and " +
"it must be HTTP or HTTPS; found: " + xrdsLocation,
代码示例来源:origin: com.cloudbees/openid4java-shaded
/**
* Parses the HTML input stream and scans for the Yadis XRDS location
* in the HTML HEAD Meta tags.
*
* @param input input data stream
* @return String the XRDS location URL, or null if not found
* @throws YadisException on parsing errors or Yadis protocal violations
*/
private String getHtmlMeta(String input) throws YadisException
{
String xrdsLocation;
if (input == null)
throw new YadisException("Cannot download HTML message",
OpenIDException.YADIS_HTMLMETA_DOWNLOAD_ERROR);
xrdsLocation = YADIS_HTML_PARSER.getHtmlMeta(input);
if (DEBUG)
{
_log.debug("input:\n" + input);
_log.debug("xrdsLocation: " + xrdsLocation);
}
return xrdsLocation;
}
我正在编写一个 Java JSP 代码,该代码使用 openid 对 WSO2 IS 服务器进行身份验证。我从开发人员那里获取了示例代码,因此我得到以下内容: ">Secret dat
本文整理了Java中org.openid4java.discovery.yadis.YadisException.getErrorCode()方法的一些代码示例,展示了YadisException.g
本文整理了Java中org.openid4java.discovery.yadis.YadisException.()方法的一些代码示例,展示了YadisException.()的具体用法。这些代码示
本文整理了Java中org.openid4java.discovery.yadis.YadisException.getMessage()方法的一些代码示例,展示了YadisException.get
我是 java 新手,尝试使用 openid4java 进行身份验证。对于某些 openid 提供商,它运行良好(例如使用 yandex),但使用另一个提供商(例如使用 google)则失败。当我尝试
我是一名优秀的程序员,十分优秀!