类 NettyServerSslContextBuilder
java.lang.Object
org.apache.pulsar.common.util.SslContextAutoRefreshBuilder<io.netty.handler.ssl.SslContext>
org.apache.pulsar.common.util.NettyServerSslContextBuilder
public class NettyServerSslContextBuilder
extends SslContextAutoRefreshBuilder<io.netty.handler.ssl.SslContext>
SSL context builder for Netty Server side.
-
字段概要
字段修饰符和类型字段说明protected final io.netty.handler.ssl.SslProviderprotected final booleanprotected final FileModifiedTimeUpdaterprotected final FileModifiedTimeUpdaterprotected final booleanprotected final FileModifiedTimeUpdater从类继承的字段 org.apache.pulsar.common.util.SslContextAutoRefreshBuilder
lastRefreshTime, refreshTime -
构造器概要
构造器构造器说明NettyServerSslContextBuilder(boolean allowInsecure, String trustCertsFilePath, String certificateFilePath, String keyFilePath, Set<String> ciphers, Set<String> protocols, boolean requireTrustedClientCertOnConnect, long delayInSeconds) NettyServerSslContextBuilder(io.netty.handler.ssl.SslProvider sslProvider, boolean allowInsecure, String trustCertsFilePath, String certificateFilePath, String keyFilePath, Set<String> ciphers, Set<String> protocols, boolean requireTrustedClientCertOnConnect, long delayInSeconds) -
方法概要
修饰符和类型方法说明io.netty.handler.ssl.SslContextReturns cached SSLContext.booleanReturns whether the key files modified after a refresh time, and context need update.io.netty.handler.ssl.SslContextupdate()updates and returns cached SSLContext.从类继承的方法 org.apache.pulsar.common.util.SslContextAutoRefreshBuilder
get
-
字段详细资料
-
tlsAllowInsecureConnection
protected final boolean tlsAllowInsecureConnection -
tlsTrustCertsFilePath
-
tlsCertificateFilePath
-
tlsKeyFilePath
-
tlsCiphers
-
tlsProtocols
-
tlsRequireTrustedClientCertOnConnect
protected final boolean tlsRequireTrustedClientCertOnConnect -
sslProvider
protected final io.netty.handler.ssl.SslProvider sslProvider
-
-
构造器详细资料
-
NettyServerSslContextBuilder
-
NettyServerSslContextBuilder
-
-
方法详细资料
-
update
public io.netty.handler.ssl.SslContext update() throws SSLException, FileNotFoundException, GeneralSecurityException, IOException从类复制的说明:SslContextAutoRefreshBuilderupdates and returns cached SSLContext.- 指定者:
update在类中SslContextAutoRefreshBuilder<io.netty.handler.ssl.SslContext>- 返回:
- 抛出:
GeneralSecurityExceptionIOExceptionSSLExceptionFileNotFoundException
-
getSslContext
public io.netty.handler.ssl.SslContext getSslContext()从类复制的说明:SslContextAutoRefreshBuilderReturns cached SSLContext.- 指定者:
getSslContext在类中SslContextAutoRefreshBuilder<io.netty.handler.ssl.SslContext>- 返回:
-
needUpdate
public boolean needUpdate()从类复制的说明:SslContextAutoRefreshBuilderReturns whether the key files modified after a refresh time, and context need update.- 指定者:
needUpdate在类中SslContextAutoRefreshBuilder<io.netty.handler.ssl.SslContext>- 返回:
- true if files modified
-