Package org.apache.pulsar.common.util
Class DefaultSslContextBuilder
java.lang.Object
org.apache.pulsar.common.util.SslContextAutoRefreshBuilder<SSLContext>
org.apache.pulsar.common.util.DefaultSslContextBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final FileModifiedTimeUpdaterprotected final FileModifiedTimeUpdaterprotected final booleanprotected final FileModifiedTimeUpdaterFields inherited from class org.apache.pulsar.common.util.SslContextAutoRefreshBuilder
lastRefreshTime, refreshTime -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSslContextBuilder(boolean allowInsecure, String trustCertsFilePath, String certificateFilePath, String keyFilePath, boolean requireTrustedClientCertOnConnect, long certRefreshInSec) DefaultSslContextBuilder(boolean allowInsecure, String trustCertsFilePath, String certificateFilePath, String keyFilePath, boolean requireTrustedClientCertOnConnect, long certRefreshInSec, String providerName) -
Method Summary
Modifier and TypeMethodDescriptionReturns cached SSLContext.booleanReturns whether the key files modified after a refresh time, and context need update.update()updates and returns cached SSLContext.Methods inherited from class org.apache.pulsar.common.util.SslContextAutoRefreshBuilder
get
-
Field Details
-
tlsAllowInsecureConnection
protected final boolean tlsAllowInsecureConnection -
tlsTrustCertsFilePath
-
tlsCertificateFilePath
-
tlsKeyFilePath
-
tlsRequireTrustedClientCertOnConnect
protected final boolean tlsRequireTrustedClientCertOnConnect
-
-
Constructor Details
-
DefaultSslContextBuilder
-
DefaultSslContextBuilder
-
-
Method Details
-
update
Description copied from class:SslContextAutoRefreshBuilderupdates and returns cached SSLContext.- Specified by:
updatein classSslContextAutoRefreshBuilder<SSLContext>- Returns:
- Throws:
GeneralSecurityException
-
getSslContext
Description copied from class:SslContextAutoRefreshBuilderReturns cached SSLContext.- Specified by:
getSslContextin classSslContextAutoRefreshBuilder<SSLContext>- Returns:
-
needUpdate
public boolean needUpdate()Description copied from class:SslContextAutoRefreshBuilderReturns whether the key files modified after a refresh time, and context need update.- Specified by:
needUpdatein classSslContextAutoRefreshBuilder<SSLContext>- Returns:
- true if files modified
-