类 NetSslContextBuilder
java.lang.Object
org.apache.pulsar.common.util.SslContextAutoRefreshBuilder<SSLContext>
org.apache.pulsar.common.util.keystoretls.NetSslContextBuilder
Similar to `DefaultSslContextBuilder`, which build `javax.net.ssl.SSLContext` for web service.
-
字段概要
字段修饰符和类型字段说明protected final booleanprotected final FileModifiedTimeUpdaterprotected final Stringprotected final Stringprotected final Stringprotected final booleanprotected final FileModifiedTimeUpdaterprotected final Stringprotected final String从类继承的字段 org.apache.pulsar.common.util.SslContextAutoRefreshBuilder
lastRefreshTime, refreshTime -
构造器概要
构造器构造器说明NetSslContextBuilder(String sslProviderString, String keyStoreTypeString, String keyStore, String keyStorePasswordPath, boolean allowInsecureConnection, String trustStoreTypeString, String trustStore, String trustStorePasswordPath, boolean requireTrustedClientCertOnConnect, long certRefreshInSec) -
方法概要
修饰符和类型方法说明Returns cached SSLContext.booleanReturns whether the key files modified after a refresh time, and context need update.update()updates and returns cached SSLContext.从类继承的方法 org.apache.pulsar.common.util.SslContextAutoRefreshBuilder
get
-
字段详细资料
-
tlsAllowInsecureConnection
protected final boolean tlsAllowInsecureConnection -
tlsRequireTrustedClientCertOnConnect
protected final boolean tlsRequireTrustedClientCertOnConnect -
tlsProvider
-
tlsKeyStoreType
-
tlsKeyStorePassword
-
tlsKeyStore
-
tlsTrustStoreType
-
tlsTrustStorePassword
-
tlsTrustStore
-
-
构造器详细资料
-
NetSslContextBuilder
public NetSslContextBuilder(String sslProviderString, String keyStoreTypeString, String keyStore, String keyStorePasswordPath, boolean allowInsecureConnection, String trustStoreTypeString, String trustStore, String trustStorePasswordPath, boolean requireTrustedClientCertOnConnect, long certRefreshInSec)
-
-
方法详细资料
-
update
从类复制的说明:SslContextAutoRefreshBuilderupdates and returns cached SSLContext.- 指定者:
update在类中SslContextAutoRefreshBuilder<SSLContext>- 返回:
- 抛出:
GeneralSecurityExceptionIOException
-
getSslContext
从类复制的说明:SslContextAutoRefreshBuilderReturns cached SSLContext.- 指定者:
getSslContext在类中SslContextAutoRefreshBuilder<SSLContext>- 返回:
-
needUpdate
public boolean needUpdate()从类复制的说明:SslContextAutoRefreshBuilderReturns whether the key files modified after a refresh time, and context need update.- 指定者:
needUpdate在类中SslContextAutoRefreshBuilder<SSLContext>- 返回:
- true if files modified
-