DefaultSocks5PasswordAuthRequest Class — netty Architecture
Architecture documentation for the DefaultSocks5PasswordAuthRequest class in DefaultSocks5PasswordAuthRequest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD df152f59_cee2_8f7c_77b8_bc8c6333ea61["DefaultSocks5PasswordAuthRequest"] 52c1c98c_218c_dbef_e245_5d8eccfedda9["DefaultSocks5PasswordAuthRequest.java"] df152f59_cee2_8f7c_77b8_bc8c6333ea61 -->|defined in| 52c1c98c_218c_dbef_e245_5d8eccfedda9 a7f90318_1295_9ce1_084b_5d1ea3c4c6cc["DefaultSocks5PasswordAuthRequest()"] df152f59_cee2_8f7c_77b8_bc8c6333ea61 -->|method| a7f90318_1295_9ce1_084b_5d1ea3c4c6cc c8958c69_9516_3b52_f7f2_519adca13e5b["String()"] df152f59_cee2_8f7c_77b8_bc8c6333ea61 -->|method| c8958c69_9516_3b52_f7f2_519adca13e5b
Relationship Graph
Source Code
codec-socks/src/main/java/io/netty/handler/codec/socksx/v5/DefaultSocks5PasswordAuthRequest.java lines 25–72
public class DefaultSocks5PasswordAuthRequest extends AbstractSocks5Message implements Socks5PasswordAuthRequest {
private final String username;
private final String password;
public DefaultSocks5PasswordAuthRequest(String username, String password) {
ObjectUtil.checkNotNull(username, "username");
ObjectUtil.checkNotNull(password, "password");
if (username.length() > 255) {
throw new IllegalArgumentException("username: **** (expected: less than 256 chars)");
}
if (password.length() > 255) {
throw new IllegalArgumentException("password: **** (expected: less than 256 chars)");
}
this.username = username;
this.password = password;
}
@Override
public String username() {
return username;
}
@Override
public String password() {
return password;
}
@Override
public String toString() {
StringBuilder buf = new StringBuilder(StringUtil.simpleClassName(this));
DecoderResult decoderResult = decoderResult();
if (!decoderResult.isSuccess()) {
buf.append("(decoderResult: ");
buf.append(decoderResult);
buf.append(", username: ");
} else {
buf.append("(username: ");
}
buf.append(username());
buf.append(", password: ****)");
return buf.toString();
}
}
Defined In
Source
Frequently Asked Questions
What is the DefaultSocks5PasswordAuthRequest class?
DefaultSocks5PasswordAuthRequest is a class in the netty codebase, defined in codec-socks/src/main/java/io/netty/handler/codec/socksx/v5/DefaultSocks5PasswordAuthRequest.java.
Where is DefaultSocks5PasswordAuthRequest defined?
DefaultSocks5PasswordAuthRequest is defined in codec-socks/src/main/java/io/netty/handler/codec/socksx/v5/DefaultSocks5PasswordAuthRequest.java at line 25.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free