类 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 FileModifiedTimeUpdater
protected final FileModifiedTimeUpdater
protected final FileModifiedTimeUpdater
从类继承的字段 org.apache.pulsar.common.util.SslContextAutoRefreshBuilder
lastRefreshTime, refreshTime
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明io.netty.handler.ssl.SslContext
Returns cached SSLContext.boolean
Returns whether the key files modified after a refresh time, and context need update.io.netty.handler.ssl.SslContext
update()
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从类复制的说明:SslContextAutoRefreshBuilder
updates and returns cached SSLContext.- 指定者:
update
在类中SslContextAutoRefreshBuilder<io.netty.handler.ssl.SslContext>
- 返回:
- 抛出:
GeneralSecurityException
IOException
SSLException
FileNotFoundException
-
getSslContext
public io.netty.handler.ssl.SslContext getSslContext()从类复制的说明:SslContextAutoRefreshBuilder
Returns cached SSLContext.- 指定者:
getSslContext
在类中SslContextAutoRefreshBuilder<io.netty.handler.ssl.SslContext>
- 返回:
-
needUpdate
public boolean needUpdate()从类复制的说明:SslContextAutoRefreshBuilder
Returns whether the key files modified after a refresh time, and context need update.- 指定者:
needUpdate
在类中SslContextAutoRefreshBuilder<io.netty.handler.ssl.SslContext>
- 返回:
- true if files modified
-