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

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

本文整理了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

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

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

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

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

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

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

private OCSPResp getOcspResponse()
    throws IOException, KeyStoreException, CertificateVerificationException, CertificateException {
  OCSPResp response = OCSPResponseBuilder.generateOcspResponse(sslConfig, cacheSize, cacheDelay);
  if (!OpenSsl.isAvailable()) {
    throw new IllegalStateException("OpenSSL is not available!");
  }
  if (!OpenSsl.isOcspSupported()) {
    throw new IllegalStateException("OCSP is not supported!");
  }
  return response;
}

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

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

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

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

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

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

相关文章