public class NettyClientSslContextRefresher extends SslContextAutoRefreshBuilder<io.netty.handler.ssl.SslContext>
| Modifier and Type | Field and Description |
|---|---|
protected FileModifiedTimeUpdater |
tlsCertsFilePath |
protected FileModifiedTimeUpdater |
tlsPrivateKeyFilePath |
protected FileModifiedTimeUpdater |
tlsTrustCertsFilePath |
lastRefreshTime, refreshTime| Constructor and Description |
|---|
NettyClientSslContextRefresher(boolean allowInsecure,
String trustCertsFilePath,
AuthenticationDataProvider authData,
long delayInSeconds) |
| Modifier and Type | Method and Description |
|---|---|
io.netty.handler.ssl.SslContext |
getSslContext()
Returns cached SSLContext.
|
boolean |
needUpdate()
Returns whether the key files modified after a refresh time, and context need update.
|
io.netty.handler.ssl.SslContext |
update()
updates and returns cached SSLContext.
|
getprotected final FileModifiedTimeUpdater tlsTrustCertsFilePath
protected final FileModifiedTimeUpdater tlsCertsFilePath
protected final FileModifiedTimeUpdater tlsPrivateKeyFilePath
public NettyClientSslContextRefresher(boolean allowInsecure,
String trustCertsFilePath,
AuthenticationDataProvider authData,
long delayInSeconds)
throws IOException,
GeneralSecurityException
IOExceptionGeneralSecurityExceptionpublic io.netty.handler.ssl.SslContext update()
throws SSLException,
FileNotFoundException,
GeneralSecurityException,
IOException
SslContextAutoRefreshBuilderupdate in class SslContextAutoRefreshBuilder<io.netty.handler.ssl.SslContext>GeneralSecurityExceptionIOExceptionSSLExceptionFileNotFoundExceptionpublic io.netty.handler.ssl.SslContext getSslContext()
SslContextAutoRefreshBuildergetSslContext in class SslContextAutoRefreshBuilder<io.netty.handler.ssl.SslContext>public boolean needUpdate()
SslContextAutoRefreshBuilderneedUpdate in class SslContextAutoRefreshBuilder<io.netty.handler.ssl.SslContext>Copyright © 2017–2022 Apache Software Foundation. All rights reserved.