Home / Function/ runTask() — netty Function Reference

runTask() — netty Function Reference

Architecture documentation for the runTask() function in BoringSSLCertificateCallbackTask.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  621521e7_e83e_eadc_e26f_067a0f5ff78f["runTask()"]
  587238a8_8157_6925_b76e_7b541ca73374["BoringSSLCertificateCallbackTask"]
  621521e7_e83e_eadc_e26f_067a0f5ff78f -->|defined in| 587238a8_8157_6925_b76e_7b541ca73374
  style 621521e7_e83e_eadc_e26f_067a0f5ff78f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-classes-quic/src/main/java/io/netty/handler/codec/quic/BoringSSLCertificateCallbackTask.java lines 43–60

    @Override
    protected void runTask(long ssl, TaskCallback taskCallback) {
        try {
            long[] result = callback.handle(ssl, keyTypeBytes, asn1DerEncodedPrincipals, authMethods);
            if (result == null) {
                taskCallback.onResult(ssl, 0);
            } else {
                this.key = result[0];
                this.chain = result[1];
                taskCallback.onResult(ssl, 1);
            }
        } catch (Exception e) {
            // Just catch the exception and return 0 to fail the handshake.
            // The problem is that rethrowing here is really "useless" as we will process it as part of an openssl
            // c callback which needs to return 0 for an error to abort the handshake.
            taskCallback.onResult(ssl, 0);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does runTask() do?
runTask() is a function in the netty codebase, defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/BoringSSLCertificateCallbackTask.java.
Where is runTask() defined?
runTask() is defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/BoringSSLCertificateCallbackTask.java at line 43.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free