public class NetSslContextBuilder extends SslContextAutoRefreshBuilder<SSLContext>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
tlsAllowInsecureConnection |
protected FileModifiedTimeUpdater |
tlsKeyStore |
protected String |
tlsKeyStorePassword |
protected String |
tlsKeyStoreType |
protected String |
tlsProvider |
protected boolean |
tlsRequireTrustedClientCertOnConnect |
protected FileModifiedTimeUpdater |
tlsTrustStore |
protected String |
tlsTrustStorePassword |
protected String |
tlsTrustStoreType |
lastRefreshTime, refreshTime| Constructor and Description |
|---|
NetSslContextBuilder(String sslProviderString,
String keyStoreTypeString,
String keyStore,
String keyStorePasswordPath,
boolean allowInsecureConnection,
String trustStoreTypeString,
String trustStore,
String trustStorePasswordPath,
boolean requireTrustedClientCertOnConnect,
long certRefreshInSec) |
| Modifier and Type | Method and Description |
|---|---|
SSLContext |
getSslContext()
Returns cached SSLContext.
|
boolean |
needUpdate()
Returns whether the key files modified after a refresh time, and context need update.
|
SSLContext |
update()
updates and returns cached SSLContext.
|
getprotected final boolean tlsAllowInsecureConnection
protected final boolean tlsRequireTrustedClientCertOnConnect
protected final String tlsProvider
protected final String tlsKeyStoreType
protected final String tlsKeyStorePassword
protected final FileModifiedTimeUpdater tlsKeyStore
protected final String tlsTrustStoreType
protected final String tlsTrustStorePassword
protected final FileModifiedTimeUpdater tlsTrustStore
public NetSslContextBuilder(String sslProviderString, String keyStoreTypeString, String keyStore, String keyStorePasswordPath, boolean allowInsecureConnection, String trustStoreTypeString, String trustStore, String trustStorePasswordPath, boolean requireTrustedClientCertOnConnect, long certRefreshInSec)
public SSLContext update() throws GeneralSecurityException, IOException
SslContextAutoRefreshBuilderupdate in class SslContextAutoRefreshBuilder<SSLContext>GeneralSecurityExceptionIOExceptionpublic SSLContext getSslContext()
SslContextAutoRefreshBuildergetSslContext in class SslContextAutoRefreshBuilder<SSLContext>public boolean needUpdate()
SslContextAutoRefreshBuilderneedUpdate in class SslContextAutoRefreshBuilder<SSLContext>Copyright © 2017–2022 Apache Software Foundation. All rights reserved.