本文整理了Java中io.vertx.core.http.HttpConnection.peerCertificateChain()
方法的一些代码示例,展示了HttpConnection.peerCertificateChain()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpConnection.peerCertificateChain()
方法的具体详情如下:
包路径:io.vertx.core.http.HttpConnection
类名称:HttpConnection
方法名:peerCertificateChain
[英]Note: Java SE 5+ recommends to use javax.net.ssl.SSLSession#getPeerCertificates() instead of of javax.net.ssl.SSLSession#getPeerCertificateChain() which this method is based on. Use #sslSession() to access that method.
[中]注意:JavaSE5+建议使用javax。网ssl。SSLSession#getPeerCertificates()而不是javax。网ssl。SSLSession#getPeerCertificateChain()是此方法的基础。使用#sslSession()访问该方法。
代码示例来源:origin: eclipse-vertx/vert.x
if (conn.isSsl()) {
try {
clientPeerCert = conn.peerCertificateChain()[0];
} catch (SSLPeerUnverifiedException ignore) {
代码示例来源:origin: io.vertx/vertx-core
if (conn.isSsl()) {
try {
clientPeerCert = conn.peerCertificateChain()[0];
} catch (SSLPeerUnverifiedException ignore) {
代码示例来源:origin: EnMasseProject/enmasse
String userName = requestContext.getHeaderString(X_REMOTE_USER);
try {
connection.peerCertificateChain();
log.debug("Client certificates trusted... impersonating {}", userName);
requestContext.setSecurityContext(new RbacSecurityContext(new TokenReview(userName, "", true), authApi, requestContext.getUriInfo()));
内容来源于网络,如有侵权,请联系作者删除!