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