Home / Function/ SocksAuthRequest() — netty Function Reference

SocksAuthRequest() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  f3a049dc_a615_92ec_3f62_73f738f5fadf["SocksAuthRequest()"]
  11085beb_9f00_41e4_2195_72be7e6fd523["SocksAuthRequest"]
  f3a049dc_a615_92ec_3f62_73f738f5fadf -->|defined in| 11085beb_9f00_41e4_2195_72be7e6fd523
  style f3a049dc_a615_92ec_3f62_73f738f5fadf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-socks/src/main/java/io/netty/handler/codec/socks/SocksAuthRequest.java lines 35–52

    public SocksAuthRequest(String username, String password) {
        super(SocksRequestType.AUTH);
        ObjectUtil.checkNotNull(username, "username");
        ObjectUtil.checkNotNull(password, "password");
        final CharsetEncoder asciiEncoder = CharsetUtil.encoder(CharsetUtil.US_ASCII);
        if (!asciiEncoder.canEncode(username) || !asciiEncoder.canEncode(password)) {
            throw new IllegalArgumentException(
                    "username: " + username + " or password: **** values should be in pure ascii");
        }
        if (username.length() > 255) {
            throw new IllegalArgumentException("username: " + username + " exceeds 255 char limit");
        }
        if (password.length() > 255) {
            throw new IllegalArgumentException("password: **** exceeds 255 char limit");
        }
        this.username = username;
        this.password = password;
    }

Domain

Subdomains

Frequently Asked Questions

What does SocksAuthRequest() do?
SocksAuthRequest() is a function in the netty codebase, defined in codec-socks/src/main/java/io/netty/handler/codec/socks/SocksAuthRequest.java.
Where is SocksAuthRequest() defined?
SocksAuthRequest() is defined in codec-socks/src/main/java/io/netty/handler/codec/socks/SocksAuthRequest.java at line 35.

Analyze Your Own Codebase

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

Try Supermodel Free