Home / Function/ authenticate() — netty Function Reference

authenticate() — netty Function Reference

Architecture documentation for the authenticate() function in Socks4ProxyServer.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  90dc76b7_3a78_6df5_59e1_b00ba7bca997["authenticate()"]
  243d5be0_3bd5_5155_e16b_6cdcbf7860fa["Socks4ProxyServer"]
  90dc76b7_3a78_6df5_59e1_b00ba7bca997 -->|defined in| 243d5be0_3bd5_5155_e16b_6cdcbf7860fa
  a35fdca2_34a5_93ee_8df6_a105404d182a["handleProxyProtocol()"]
  a35fdca2_34a5_93ee_8df6_a105404d182a -->|calls| 90dc76b7_3a78_6df5_59e1_b00ba7bca997
  75bc00ad_fcbe_9a76_c277_9f5f07f68782["handleProxyProtocol()"]
  75bc00ad_fcbe_9a76_c277_9f5f07f68782 -->|calls| 90dc76b7_3a78_6df5_59e1_b00ba7bca997
  style 90dc76b7_3a78_6df5_59e1_b00ba7bca997 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler-proxy/src/test/java/io/netty/handler/proxy/Socks4ProxyServer.java lines 69–83

    private boolean authenticate(ChannelHandlerContext ctx, Socks4CommandRequest req) {
        assertEquals(Socks4CommandType.CONNECT, req.type());

        if (testMode != TestMode.INTERMEDIARY) {
            ctx.pipeline().addBefore(ctx.name(), "lineDecoder", new LineBasedFrameDecoder(64, false, true));
        }

        boolean authzSuccess;
        if (username != null) {
            authzSuccess = username.equals(req.userId());
        } else {
            authzSuccess = true;
        }
        return authzSuccess;
    }

Domain

Subdomains

Frequently Asked Questions

What does authenticate() do?
authenticate() is a function in the netty codebase, defined in handler-proxy/src/test/java/io/netty/handler/proxy/Socks4ProxyServer.java.
Where is authenticate() defined?
authenticate() is defined in handler-proxy/src/test/java/io/netty/handler/proxy/Socks4ProxyServer.java at line 69.
What calls authenticate()?
authenticate() is called by 2 function(s): handleProxyProtocol, handleProxyProtocol.

Analyze Your Own Codebase

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

Try Supermodel Free