OpenSslCertificateCompressionAlgorithm Type — netty Architecture
Architecture documentation for the OpenSslCertificateCompressionAlgorithm type/interface in OpenSslCertificateCompressionAlgorithm.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f346b7a4_db5e_5f0b_15d3_19de80ba28d8["OpenSslCertificateCompressionAlgorithm"] 093e8a2f_81c8_59f9_15a4_9e0c8fa366ba["OpenSslCertificateCompressionAlgorithm.java"] f346b7a4_db5e_5f0b_15d3_19de80ba28d8 -->|defined in| 093e8a2f_81c8_59f9_15a4_9e0c8fa366ba style f346b7a4_db5e_5f0b_15d3_19de80ba28d8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/main/java/io/netty/handler/ssl/OpenSslCertificateCompressionAlgorithm.java lines 24–64
public interface OpenSslCertificateCompressionAlgorithm {
/**
* Compress the given input with the specified algorithm and return the compressed bytes.
*
* @param engine the {@link SSLEngine}
* @param uncompressedCertificate the uncompressed certificate
* @return the compressed form of the certificate
* @throws Exception thrown if an error occurs while compressing
*/
byte[] compress(SSLEngine engine, byte[] uncompressedCertificate) throws Exception;
/**
* Decompress the given input with the specified algorithm and return the decompressed bytes.
*
* <h3>Implementation
* <a href="https://tools.ietf.org/html/rfc8879#section-5">Security Considerations</a></h3>
* <p>Implementations SHOULD bound the memory usage when decompressing the CompressedCertificate message.</p>
* <p>
* Implementations MUST limit the size of the resulting decompressed chain to the specified {@code uncompressedLen},
* and they MUST abort the connection (throw an exception) if the size of the output of the decompression
* function exceeds that limit.
* </p>
*
* @param engine the {@link SSLEngine}
* @param uncompressedLen the expected length of the decompressed certificate that will be returned.
* @param compressedCertificate the compressed form of the certificate
* @return the decompressed form of the certificate
* @throws Exception thrown if an error occurs while decompressing or output size exceeds
* {@code uncompressedLen}
*/
byte[] decompress(SSLEngine engine, int uncompressedLen, byte[] compressedCertificate) throws Exception;
/**
* Return the ID for the compression algorithm provided for by a given implementation.
*
* @return compression algorithm ID as specified by
* <a href="https://datatracker.ietf.org/doc/html/rfc8879">RFC8879</a>.
*/
int algorithmId();
}
Source
Frequently Asked Questions
What is the OpenSslCertificateCompressionAlgorithm type?
OpenSslCertificateCompressionAlgorithm is a type/interface in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/OpenSslCertificateCompressionAlgorithm.java.
Where is OpenSslCertificateCompressionAlgorithm defined?
OpenSslCertificateCompressionAlgorithm is defined in handler/src/main/java/io/netty/handler/ssl/OpenSslCertificateCompressionAlgorithm.java at line 24.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free