Module io.netty5.handler
Package io.netty5.handler.ssl
Class OpenSslCertificateCompressionConfig.Builder
- java.lang.Object
-
- io.netty5.handler.ssl.OpenSslCertificateCompressionConfig.Builder
-
- Enclosing class:
- OpenSslCertificateCompressionConfig
public static final class OpenSslCertificateCompressionConfig.Builder extends Object
Builder for anOpenSslCertificateCompressionAlgorithm
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenSslCertificateCompressionConfig.Builder
addAlgorithm(OpenSslCertificateCompressionAlgorithm algorithm, OpenSslCertificateCompressionConfig.AlgorithmMode mode)
Adds a certificate compression algorithm.OpenSslCertificateCompressionConfig
build()
Build a newOpenSslCertificateCompressionConfig
based on the previous addedOpenSslCertificateCompressionAlgorithm
s.
-
-
-
Method Detail
-
addAlgorithm
public OpenSslCertificateCompressionConfig.Builder addAlgorithm(OpenSslCertificateCompressionAlgorithm algorithm, OpenSslCertificateCompressionConfig.AlgorithmMode mode)
Adds a certificate compression algorithm. For servers, algorithm preference order is dictated by the order of algorithm registration. Most preferred algorithm should be registered first.- Parameters:
algorithm
- implementation of the compression and or decompression algorithm as aOpenSslCertificateCompressionAlgorithm
mode
- indicates whether decompression support should be advertized, compression should be applied for peers which support it, or both. This allows the caller to support one way compression only.- Returns:
- self.
-
build
public OpenSslCertificateCompressionConfig build()
Build a newOpenSslCertificateCompressionConfig
based on the previous addedOpenSslCertificateCompressionAlgorithm
s.- Returns:
- a new config.
-
-