SocksAuthResponse Class — netty Architecture
Architecture documentation for the SocksAuthResponse class in SocksAuthResponse.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD de9e1945_b4b1_2fa7_f009_67df619bcddd["SocksAuthResponse"] 08fbdf07_c1ec_360f_54f1_1a07495e0276["SocksAuthResponse.java"] de9e1945_b4b1_2fa7_f009_67df619bcddd -->|defined in| 08fbdf07_c1ec_360f_54f1_1a07495e0276 ed501445_b276_dfef_7ab2_b6d7e2a2a857["SocksAuthResponse()"] de9e1945_b4b1_2fa7_f009_67df619bcddd -->|method| ed501445_b276_dfef_7ab2_b6d7e2a2a857 8e047cd0_6a4f_16dd_bf7f_44707b2e1df4["SocksAuthStatus()"] de9e1945_b4b1_2fa7_f009_67df619bcddd -->|method| 8e047cd0_6a4f_16dd_bf7f_44707b2e1df4 955dbc7b_c5d5_24bb_3bec_12efb66edcd3["encodeAsByteBuf()"] de9e1945_b4b1_2fa7_f009_67df619bcddd -->|method| 955dbc7b_c5d5_24bb_3bec_12efb66edcd3
Relationship Graph
Source Code
codec-socks/src/main/java/io/netty/handler/codec/socks/SocksAuthResponse.java lines 27–50
public final class SocksAuthResponse extends SocksResponse {
private static final SocksSubnegotiationVersion SUBNEGOTIATION_VERSION = SocksSubnegotiationVersion.AUTH_PASSWORD;
private final SocksAuthStatus authStatus;
public SocksAuthResponse(SocksAuthStatus authStatus) {
super(SocksResponseType.AUTH);
this.authStatus = ObjectUtil.checkNotNull(authStatus, "authStatus");
}
/**
* Returns the {@link SocksAuthStatus} of this {@link SocksAuthResponse}
*
* @return The {@link SocksAuthStatus} of this {@link SocksAuthResponse}
*/
public SocksAuthStatus authStatus() {
return authStatus;
}
@Override
public void encodeAsByteBuf(ByteBuf byteBuf) {
byteBuf.writeByte(SUBNEGOTIATION_VERSION.byteValue());
byteBuf.writeByte(authStatus.byteValue());
}
}
Source
Frequently Asked Questions
What is the SocksAuthResponse class?
SocksAuthResponse is a class in the netty codebase, defined in codec-socks/src/main/java/io/netty/handler/codec/socks/SocksAuthResponse.java.
Where is SocksAuthResponse defined?
SocksAuthResponse is defined in codec-socks/src/main/java/io/netty/handler/codec/socks/SocksAuthResponse.java at line 27.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free