Top Description Fields Constructors Methods
io.netty.contrib.handler.codec.socks

public final Class SocksAuthRequest

extends SocksRequest
Class Inheritance
Imports
io.netty5.buffer.Buffer, io.netty5.util.CharsetUtil, java.nio.charset.StandardCharsets, .CharsetEncoder

An socks auth request.
See Also
SocksAuthResponse, SocksAuthRequestDecoder

Field Summary

Modifier and TypeField and Description
private final String
private static final SocksSubnegotiationVersion
private final String

Constructor Summary

AccessConstructor and Description
public
SocksAuthRequest(String username, String password)

Method Summary

Modifier and TypeMethod and Description
public void
public String

Returns:

password that needs to be validated
password
()

Returns password that needs to be validated

public String

Returns:

username that needs to be authenticated
username
()

Returns username that needs to be authenticated

Inherited from io.netty.contrib.handler.codec.socks.SocksRequest:
requestType

Field Detail

passwordback to summary
private final String password
SUBNEGOTIATION_VERSIONback to summary
private static final SocksSubnegotiationVersion SUBNEGOTIATION_VERSION
usernameback to summary
private final String username

Constructor Detail

SocksAuthRequestback to summary
public SocksAuthRequest(String username, String password)

Method Detail

encodeAsBufferback to summary
public void encodeAsBuffer(Buffer buffer)

Implements abstract io.netty.contrib.handler.codec.socks.SocksMessage.encodeAsBuffer.

Annotations
@Override
passwordback to summary
public String password()

Returns password that needs to be validated

Returns:String

password that needs to be validated

usernameback to summary
public String username()

Returns username that needs to be authenticated

Returns:String

username that needs to be authenticated