类 NettyClientSslContextRefresher
java.lang.Object
org.apache.pulsar.common.util.SslContextAutoRefreshBuilder<io.netty.handler.ssl.SslContext>
org.apache.pulsar.common.util.NettyClientSslContextRefresher
public class NettyClientSslContextRefresher
extends SslContextAutoRefreshBuilder<io.netty.handler.ssl.SslContext>
SSL context builder for Netty Client side.
-
字段概要
字段修饰符和类型字段说明protected final FileModifiedTimeUpdaterprotected final FileModifiedTimeUpdaterprotected final FileModifiedTimeUpdater从类继承的字段 org.apache.pulsar.common.util.SslContextAutoRefreshBuilder
lastRefreshTime, refreshTime -
构造器概要
构造器构造器说明NettyClientSslContextRefresher(io.netty.handler.ssl.SslProvider sslProvider, boolean allowInsecure, String trustCertsFilePath, AuthenticationDataProvider authData, Set<String> ciphers, Set<String> protocols, 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
-
字段详细资料
-
tlsTrustCertsFilePath
-
tlsCertsFilePath
-
tlsPrivateKeyFilePath
-
-
构造器详细资料
-
NettyClientSslContextRefresher
-
-
方法详细资料
-
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
-