private class Socks5ClientConnector.SocksBasicAuthentication extends BasicAuthentication<org.apache.sshd.common.util.buffer.Buffer,org.apache.sshd.common.util.buffer.Buffer>
Modifier and Type | Field and Description |
---|---|
private static byte |
SOCKS_BASIC_AUTH_SUCCESS |
private static byte |
SOCKS_BASIC_PROTOCOL_VERSION |
password, user
done, params, proxy
Constructor and Description |
---|
SocksBasicAuthentication() |
Modifier and Type | Method and Description |
---|---|
protected void |
askCredentials()
Asks for credentials via the global
Authenticator . |
org.apache.sshd.common.util.buffer.Buffer |
getToken()
Retrieves the last token generated.
|
void |
process()
Produces the next authentication token, if any.
|
clearPassword, close, start
isDone, setParams
private static final byte SOCKS_BASIC_PROTOCOL_VERSION
private static final byte SOCKS_BASIC_AUTH_SUCCESS
public void process() throws java.lang.Exception
AuthenticationHandler
process
in interface AuthenticationHandler<org.apache.sshd.common.util.buffer.Buffer,org.apache.sshd.common.util.buffer.Buffer>
process
in class BasicAuthentication<org.apache.sshd.common.util.buffer.Buffer,org.apache.sshd.common.util.buffer.Buffer>
java.lang.Exception
- if an error occursprotected void askCredentials()
BasicAuthentication
Authenticator
.askCredentials
in class BasicAuthentication<org.apache.sshd.common.util.buffer.Buffer,org.apache.sshd.common.util.buffer.Buffer>
public org.apache.sshd.common.util.buffer.Buffer getToken() throws java.io.IOException
AuthenticationHandler
null
if there is nonejava.io.IOException