public static final class OpenSslCertificateCompressionConfig.Builder
extends java.lang.Object
OpenSslCertificateCompressionAlgorithm
.限定符和类型 | 方法和说明 |
---|---|
OpenSslCertificateCompressionConfig.Builder |
addAlgorithm(OpenSslCertificateCompressionAlgorithm algorithm,
OpenSslCertificateCompressionConfig.AlgorithmMode mode)
Adds a certificate compression algorithm.
|
OpenSslCertificateCompressionConfig |
build()
Build a new
OpenSslCertificateCompressionConfig based on the previous
added OpenSslCertificateCompressionAlgorithm s. |
public OpenSslCertificateCompressionConfig.Builder addAlgorithm(OpenSslCertificateCompressionAlgorithm algorithm, OpenSslCertificateCompressionConfig.AlgorithmMode mode)
algorithm
- implementation of the compression and or decompression algorithm as a
OpenSslCertificateCompressionAlgorithm
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.public OpenSslCertificateCompressionConfig build()
OpenSslCertificateCompressionConfig
based on the previous
added OpenSslCertificateCompressionAlgorithm
s.