org.simpleframework.http.Request.getClientCertificate()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(202)

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

Request.getClientCertificate介绍

[英]This is used to acquire the SSL certificate used when the server is using a HTTPS connection. For plain text connections or connections that use a security mechanism other than SSL this will be null. This is only available when the connection makes specific use of an SSL engine to secure the connection.
[中]这用于获取服务器使用HTTPS连接时使用的SSL证书。对于纯文本连接或使用SSL以外的安全机制的连接,该值将为null。这仅在连接特定使用SSL引擎来保护连接时可用。

代码示例

代码示例来源:origin: ngallagher/simpleframework

/**
* This is used to acquire the SSL certificate used when the
* server is using a HTTPS connection. For plain text connections
* or connections that use a security mechanism other than SSL
* this will be null. This is only available when the connection
* makes specific use of an SSL engine to secure the connection.
* 
* @return this returns the associated SSL certificate if any
*/
public Certificate getClientCertificate() {
 return request.getClientCertificate();
}

代码示例来源:origin: org.simpleframework/simple-http

/**
* This is used to acquire the SSL certificate used when the
* server is using a HTTPS connection. For plain text connections
* or connections that use a security mechanism other than SSL
* this will be null. This is only available when the connection
* makes specific use of an SSL engine to secure the connection.
* 
* @return this returns the associated SSL certificate if any
*/
public Certificate getClientCertificate() {
 return request.getClientCertificate();
}

代码示例来源:origin: org.simpleframework/simple

/**
* This is used to acquire the SSL certificate used when the
* server is using a HTTPS connection. For plain text connections
* or connections that use a security mechanism other than SSL
* this will be null. This is only available when the connection
* makes specific use of an SSL engine to secure the connection.
* 
* @return this returns the associated SSL certificate if any
*/
public Certificate getClientCertificate() {
 return request.getClientCertificate();
}

相关文章