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
Modifier and TypeFieldDescriptionprotected final boolean
protected final FileModifiedTimeUpdater
protected final FileModifiedTimeUpdater
protected final boolean
protected final FileModifiedTimeUpdater
Fields inherited from class org.apache.pulsar.common.util.SslContextAutoRefreshBuilder
lastRefreshTime, refreshTime
-
Constructor Summary
ConstructorDescriptionDefaultSslContextBuilder
(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.boolean
Returns 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:SslContextAutoRefreshBuilder
updates and returns cached SSLContext.- Specified by:
update
in classSslContextAutoRefreshBuilder<SSLContext>
- Returns:
- Throws:
GeneralSecurityException
-
getSslContext
Description copied from class:SslContextAutoRefreshBuilder
Returns cached SSLContext.- Specified by:
getSslContext
in classSslContextAutoRefreshBuilder<SSLContext>
- Returns:
-
needUpdate
public boolean needUpdate()Description copied from class:SslContextAutoRefreshBuilder
Returns whether the key files modified after a refresh time, and context need update.- Specified by:
needUpdate
in classSslContextAutoRefreshBuilder<SSLContext>
- Returns:
- true if files modified
-