- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中io.undertow.security.idm.X509CertificateCredential
类的一些代码示例,展示了X509CertificateCredential
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。X509CertificateCredential
类的具体详情如下:
包路径:io.undertow.security.idm.X509CertificateCredential
类名称:X509CertificateCredential
[英]A Credential implementation which wraps an X.509 certificate.
[中]封装X.509证书的凭证实现。
代码示例来源:origin: wildfly/wildfly
public AuthenticationMechanismOutcome authenticate(final HttpServerExchange exchange, final SecurityContext securityContext) {
SSLSessionInfo sslSession = exchange.getConnection().getSslSessionInfo();
if (sslSession != null) {
try {
Certificate[] clientCerts = getPeerCertificates(exchange, sslSession, securityContext);
if (clientCerts[0] instanceof X509Certificate) {
Credential credential = new X509CertificateCredential((X509Certificate) clientCerts[0]);
IdentityManager idm = getIdentityManager(securityContext);
Account account = idm.verify(credential);
if (account != null) {
securityContext.authenticationComplete(account, name, false);
return AuthenticationMechanismOutcome.AUTHENTICATED;
}
}
} catch (SSLPeerUnverifiedException e) {
// No action - this mechanism can not attempt authentication without peer certificates so allow it to drop out
// to NOT_ATTEMPTED.
}
}
/*
* For ClientCert we do not have a concept of a failed authentication, if the client did use a key then it was deemed
* acceptable for the connection to be established, this mechanism then just 'attempts' to use it for authentication but
* does not mandate success.
*/
return AuthenticationMechanismOutcome.NOT_ATTEMPTED;
}
代码示例来源:origin: wildfly/wildfly
@Override
public Account verify(Credential credential) {
if (credential instanceof X509CertificateCredential) {
X509CertificateCredential certCredential = (X509CertificateCredential) credential;
X509Certificate certificate = certCredential.getCertificate();
AccountImpl account = getAccount(certificate.getSubjectDN().getName());
return verifyCredential(account, certificate);
}
throw new IllegalArgumentException("Parameter must be a X509CertificateCredential");
}
代码示例来源:origin: org.wildfly/wildfly-undertow
@Override
public Account verify(Credential credential) {
if (credential instanceof X509CertificateCredential) {
X509CertificateCredential certCredential = (X509CertificateCredential) credential;
X509Certificate certificate = certCredential.getCertificate();
AccountImpl account = getAccount(certificate.getSubjectDN().getName());
return verifyCredential(account, certificate);
}
throw new IllegalArgumentException("Parameter must be a X509CertificateCredential");
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
public AuthenticationMechanismOutcome authenticate(final HttpServerExchange exchange, final SecurityContext securityContext) {
SSLSessionInfo sslSession = exchange.getConnection().getSslSessionInfo();
if (sslSession != null) {
try {
Certificate[] clientCerts = getPeerCertificates(exchange, sslSession, securityContext);
if (clientCerts[0] instanceof X509Certificate) {
Credential credential = new X509CertificateCredential((X509Certificate) clientCerts[0]);
IdentityManager idm = getIdentityManager(securityContext);
Account account = idm.verify(credential);
if (account != null) {
securityContext.authenticationComplete(account, name, false);
return AuthenticationMechanismOutcome.AUTHENTICATED;
}
}
} catch (SSLPeerUnverifiedException e) {
// No action - this mechanism can not attempt authentication without peer certificates so allow it to drop out
// to NOT_ATTEMPTED.
}
}
/*
* For ClientCert we do not have a concept of a failed authentication, if the client did use a key then it was deemed
* acceptable for the connection to be established, this mechanism then just 'attempts' to use it for authentication but
* does not mandate success.
*/
return AuthenticationMechanismOutcome.NOT_ATTEMPTED;
}
代码示例来源:origin: org.jboss.eap/wildfly-undertow
@Override
public Account verify(Credential credential) {
if (credential instanceof X509CertificateCredential) {
X509CertificateCredential certCredential = (X509CertificateCredential) credential;
X509Certificate certificate = certCredential.getCertificate();
AccountImpl account = getAccount(certificate.getSubjectDN().getName());
return verifyCredential(account, certificate);
}
throw new IllegalArgumentException("Parameter must be a X509CertificateCredential");
}
代码示例来源:origin: io.undertow/undertow-core
public AuthenticationMechanismOutcome authenticate(final HttpServerExchange exchange, final SecurityContext securityContext) {
SSLSessionInfo sslSession = exchange.getConnection().getSslSessionInfo();
if (sslSession != null) {
try {
Certificate[] clientCerts = getPeerCertificates(exchange, sslSession, securityContext);
if (clientCerts[0] instanceof X509Certificate) {
Credential credential = new X509CertificateCredential((X509Certificate) clientCerts[0]);
IdentityManager idm = getIdentityManager(securityContext);
Account account = idm.verify(credential);
if (account != null) {
securityContext.authenticationComplete(account, name, false);
return AuthenticationMechanismOutcome.AUTHENTICATED;
}
}
} catch (SSLPeerUnverifiedException e) {
// No action - this mechanism can not attempt authentication without peer certificates so allow it to drop out
// to NOT_ATTEMPTED.
}
}
/*
* For ClientCert we do not have a concept of a failed authentication, if the client did use a key then it was deemed
* acceptable for the connection to be established, this mechanism then just 'attempts' to use it for authentication but
* does not mandate success.
*/
return AuthenticationMechanismOutcome.NOT_ATTEMPTED;
}
代码示例来源:origin: wildfly/wildfly-core
user = certCred.getCertificate().getSubjectDN();
} else if (credential instanceof GSSContextCredential) {
GSSContextCredential gssCred = (GSSContextCredential) credential;
有些网站不允许两次请求同一个文件: 当我尝试在 button click event 中下载我的 pdf 时,我遇到了之前的错误: private void AddReportToResponse(
已结束。此问题不符合 Stack Overflow guidelines .它目前不接受答案。 这个问题似乎与 a specific programming problem, a software a
我想学习Sun IDM。我可以从哪里下载?请给我建议。 最佳答案 https://edelivery.oracle.com/ 英语,继续 输入姓名等 选择产品包:Sun Products 选择平台:O
我有 Picketlink IDM JPA 身份验证模型的自定义实现。我通过处理那里的一个例子得到了它https://github.com/jboss-developer/jboss-picketli
本文整理了Java中io.undertow.security.idm.X509CertificateCredential类的一些代码示例,展示了X509CertificateCredential类的具
这个问题已经存在: Is it possible to detect a download before the actual download has started in Chrome? 已关闭
我已在 VMWare 虚拟服务器中安装了 FIWARE IDM。 从 VMWare 服务器中的 Firefox,我能够访问 IDM GUI,Horizon 已使用属于国内网络的内部 IP 地址启动
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 3年前关闭。 Improve thi
我有一个 Angular 项目,在项目中,我有一个服务,它返回一个对象,在应用程序组件中,我正在使用该对象。 theobject.profileImg 一切正常,但 Idm 显示此错误。 “'obje
我正在用java编写一个像IDM这样的小型应用程序。但这有很多异常(exception)。这是Downloader类的代码,它实现了runnable,我想将它用于多线程。 public class D
本文整理了Java中io.undertow.security.idm.X509CertificateCredential.getCertificate()方法的一些代码示例,展示了X509Certif
本文整理了Java中io.undertow.security.idm.X509CertificateCredential.()方法的一些代码示例,展示了X509CertificateCredentia
最近我为一家机构开发了一个网站,其中包含类(class)视频。我正在使用 JWPlayer播放无法下载的视频。当我安装 IDM 时,它会显示一个下载按钮。 如何限制从我的网站视频下载 IDM? 最佳答
IDM 为客户端应用程序提供一些 API:http://www.internetdownloadmanager.com/support/idm_api.html 我如何通过 Delphi 做到这一点?
除了使用 wine 之外,如何在 Ubuntu 中安装 IDM(互联网下载管理器)?我尝试过 wine,但它在我的笔记本电脑上不起作用。 最佳答案 你不能。IDM 是一个 Microsoft Wind
如果您使用过 IDM(Internet 下载管理器),它有一个名为 Grabber 的项目,可以在一个特殊的网站中搜索并获取该网站的文件和文件夹,您可以使用 IDM 下载它们。 我想在 C# 中做类似
我在修复媒体文件热链接或使用 IDM 下载时遇到了一些问题,我正在使用 PHP 提供视频文件并且工作正常,但我注意到我计算机上安装的 IDM 能够将下载框添加到我正在播放的视频中使用jwplayer播
这是链接:https://v13.phephim.xyz/vod/v2/packaged:mp4/6005b3591918ee01c9ef67e4/playlist.m3u8 可以播放带有 play-
我正在使用PDF.Js嵌入 PDF 文件进行预览,我从 viewer.js 中删除了下载和打开文件的脚本,但是当我测试页面和 PDF 文件尝试显示时,Internet Download Manager
我开始迁移我的 Seam 2.3 应用程序转移到 JavaEE 6,作为其中的一部分,将使用 PicketLink 2.5.0 和 PicketBox 5.0 用于安全,尤其是 IDM 组件。我正在尝
我是一名优秀的程序员,十分优秀!