Home / Type/ SocksAuthScheme Type — netty Architecture

SocksAuthScheme Type — netty Architecture

Architecture documentation for the SocksAuthScheme type/interface in SocksAuthScheme.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  507b8c55_ab6c_e539_dc64_ac615a25666e["SocksAuthScheme"]
  5f10b319_37a4_34cd_ca95_b131bba11d8b["SocksAuthScheme.java"]
  507b8c55_ab6c_e539_dc64_ac615a25666e -->|defined in| 5f10b319_37a4_34cd_ca95_b131bba11d8b
  style 507b8c55_ab6c_e539_dc64_ac615a25666e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-socks/src/main/java/io/netty/handler/codec/socks/SocksAuthScheme.java lines 19–51

public enum SocksAuthScheme {
    NO_AUTH((byte) 0x00),
    AUTH_GSSAPI((byte) 0x01),
    AUTH_PASSWORD((byte) 0x02),
    UNKNOWN((byte) 0xff);

    private final byte b;

    SocksAuthScheme(byte b) {
        this.b = b;
    }

    /**
     * @deprecated Use {@link #valueOf(byte)} instead.
     */
    @Deprecated
    public static SocksAuthScheme fromByte(byte b) {
        return valueOf(b);
    }

    public static SocksAuthScheme valueOf(byte b) {
        for (SocksAuthScheme code : values()) {
            if (code.b == b) {
                return code;
            }
        }
        return UNKNOWN;
    }

    public byte byteValue() {
        return b;
    }
}

Frequently Asked Questions

What is the SocksAuthScheme type?
SocksAuthScheme is a type/interface in the netty codebase, defined in codec-socks/src/main/java/io/netty/handler/codec/socks/SocksAuthScheme.java.
Where is SocksAuthScheme defined?
SocksAuthScheme is defined in codec-socks/src/main/java/io/netty/handler/codec/socks/SocksAuthScheme.java at line 19.

Analyze Your Own Codebase

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

Try Supermodel Free