io.netty.handler.ssl.OpenSsl.isOcspSupported()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(286)

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

OpenSsl.isOcspSupported介绍

[英]Returns true if the used version of OpenSSL supports OCSP stapling.
[中]如果使用的OpenSSL版本支持OCSP绑定,则返回true。

代码示例

代码示例来源:origin: redisson/redisson

  1. if (enableOcsp && !OpenSsl.isOcspSupported()) {
  2. throw new IllegalStateException("OCSP is not supported.");

代码示例来源:origin: wildfly/wildfly

  1. if (enableOcsp && !OpenSsl.isOcspSupported()) {
  2. throw new IllegalStateException("OCSP is not supported.");

代码示例来源:origin: io.netty/netty-handler

  1. if (enableOcsp && !OpenSsl.isOcspSupported()) {
  2. throw new IllegalStateException("OCSP is not supported.");

代码示例来源:origin: org.wso2.transport.http/org.wso2.transport.http.netty

  1. private OCSPResp getOcspResponse()
  2. throws IOException, KeyStoreException, CertificateVerificationException, CertificateException {
  3. OCSPResp response = OCSPResponseBuilder.generateOcspResponse(sslConfig, cacheSize, cacheDelay);
  4. if (!OpenSsl.isAvailable()) {
  5. throw new IllegalStateException("OpenSSL is not available!");
  6. }
  7. if (!OpenSsl.isOcspSupported()) {
  8. throw new IllegalStateException("OCSP is not supported!");
  9. }
  10. return response;
  11. }

代码示例来源:origin: org.jboss.eap/wildfly-client-all

  1. if (enableOcsp && !OpenSsl.isOcspSupported()) {
  2. throw new IllegalStateException("OCSP is not supported.");

代码示例来源:origin: org.apache.activemq/artemis-jms-client-all

  1. if (enableOcsp && !OpenSsl.isOcspSupported()) {
  2. throw new IllegalStateException("OCSP is not supported.");

代码示例来源:origin: apache/activemq-artemis

  1. if (enableOcsp && !OpenSsl.isOcspSupported()) {
  2. throw new IllegalStateException("OCSP is not supported.");

相关文章