public class NettyServerSslContextBuilder extends SslContextAutoRefreshBuilder<io.netty.handler.ssl.SslContext>
| Modifier and Type | Field and Description |
|---|---|
protected io.netty.handler.ssl.SslProvider |
sslProvider |
protected boolean |
tlsAllowInsecureConnection |
protected FileModifiedTimeUpdater |
tlsCertificateFilePath |
protected Set<String> |
tlsCiphers |
protected FileModifiedTimeUpdater |
tlsKeyFilePath |
protected Set<String> |
tlsProtocols |
protected boolean |
tlsRequireTrustedClientCertOnConnect |
protected FileModifiedTimeUpdater |
tlsTrustCertsFilePath |
lastRefreshTime, refreshTime| Constructor and Description |
|---|
NettyServerSslContextBuilder(io.netty.handler.ssl.SslProvider sslProvider,
boolean allowInsecure,
String trustCertsFilePath,
String certificateFilePath,
String keyFilePath,
Set<String> ciphers,
Set<String> protocols,
boolean requireTrustedClientCertOnConnect,
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 boolean tlsAllowInsecureConnection
protected final FileModifiedTimeUpdater tlsTrustCertsFilePath
protected final FileModifiedTimeUpdater tlsCertificateFilePath
protected final FileModifiedTimeUpdater tlsKeyFilePath
protected final boolean tlsRequireTrustedClientCertOnConnect
protected final io.netty.handler.ssl.SslProvider sslProvider
public NettyServerSslContextBuilder(io.netty.handler.ssl.SslProvider sslProvider,
boolean allowInsecure,
String trustCertsFilePath,
String certificateFilePath,
String keyFilePath,
Set<String> ciphers,
Set<String> protocols,
boolean requireTrustedClientCertOnConnect,
long delayInSeconds)
public 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.