public interface OpenSslCertificateCompressionAlgorithm
Modifier and Type | Method and Description |
---|---|
int |
algorithmId()
Return the ID for the compression algorithm provided for by a given implementation.
|
byte[] |
compress(SSLEngine engine,
byte[] uncompressedCertificate)
Compress the given input with the specified algorithm and return the compressed bytes.
|
byte[] |
decompress(SSLEngine engine,
int uncompressedLen,
byte[] compressedCertificate)
Decompress the given input with the specified algorithm and return the decompressed bytes.
|
byte[] compress(SSLEngine engine, byte[] uncompressedCertificate) throws Exception
byte[] decompress(SSLEngine engine, int uncompressedLen, byte[] compressedCertificate) throws Exception
Implementations SHOULD bound the memory usage when decompressing the CompressedCertificate message.
Implementations MUST limit the size of the resulting decompressed chain to the specified uncompressedLen
,
and they MUST abort the connection (throw an exception) if the size of the output of the decompression
function exceeds that limit.
engine
- the SSLEngine
uncompressedLen
- the expected length of the decompressed certificate that will be returned.compressedCertificate
- the compressed form of the certificateException
- thrown if an error occurs while decompressing or output size exceeds
uncompressedLen
int algorithmId()
Copyright © 2008–2024 The Netty Project. All rights reserved.