Home / Function/ newOcspResponse() — netty Function Reference

newOcspResponse() — netty Function Reference

Architecture documentation for the newOcspResponse() function in OcspTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ec5b0645_61b1_2812_2da8_e1470f0d7d58["newOcspResponse()"]
  9135fc19_1676_c0ae_d77a_3a05e26293b5["OcspTest"]
  ec5b0645_61b1_2812_2da8_e1470f0d7d58 -->|defined in| 9135fc19_1676_c0ae_d77a_3a05e26293b5
  f648b1b1_b504_81ab_4fe2_d1897cf72a47["testClientAcceptingOcspStaple()"]
  f648b1b1_b504_81ab_4fe2_d1897cf72a47 -->|calls| ec5b0645_61b1_2812_2da8_e1470f0d7d58
  6e011f44_4989_e622_a5fc_8c3efad9d1a0["testClientRejectingOcspStaple()"]
  6e011f44_4989_e622_a5fc_8c3efad9d1a0 -->|calls| ec5b0645_61b1_2812_2da8_e1470f0d7d58
  714b3c4f_a755_070f_4ff9_a71450389f6d["testClientException()"]
  714b3c4f_a755_070f_4ff9_a71450389f6d -->|calls| ec5b0645_61b1_2812_2da8_e1470f0d7d58
  style ec5b0645_61b1_2812_2da8_e1470f0d7d58 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java lines 464–473

    private static byte[] newOcspResponse() {
        // Assume we got the OCSP staple from somewhere. Using a bogus byte[]
        // in the test because getting a true staple from the CA is quite involved.
        // It requires HttpCodec and Bouncycastle and the test may be very unreliable
        // because the OCSP responder servers are basically being DDoS'd by the
        // Internet.

        return "I am a bogus OCSP staple. OpenSSL does not care about the format of the byte[]!"
                .getBytes(CharsetUtil.US_ASCII);
    }

Domain

Subdomains

Frequently Asked Questions

What does newOcspResponse() do?
newOcspResponse() is a function in the netty codebase, defined in handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java.
Where is newOcspResponse() defined?
newOcspResponse() is defined in handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java at line 464.
What calls newOcspResponse()?
newOcspResponse() is called by 3 function(s): testClientAcceptingOcspStaple, testClientException, testClientRejectingOcspStaple.

Analyze Your Own Codebase

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

Try Supermodel Free