Class Socks5ClientConnector.SocksBasicAuthentication
java.lang.Object
org.eclipse.jgit.internal.transport.sshd.auth.AbstractAuthenticationHandler<ParameterType,TokenType>
org.eclipse.jgit.internal.transport.sshd.auth.BasicAuthentication<org.apache.sshd.common.util.buffer.Buffer,org.apache.sshd.common.util.buffer.Buffer>
org.eclipse.jgit.internal.transport.sshd.proxy.Socks5ClientConnector.SocksBasicAuthentication
- All Implemented Interfaces:
Closeable
,AutoCloseable
,AuthenticationHandler<org.apache.sshd.common.util.buffer.Buffer,
org.apache.sshd.common.util.buffer.Buffer>
- Enclosing class:
- Socks5ClientConnector
private class Socks5ClientConnector.SocksBasicAuthentication
extends BasicAuthentication<org.apache.sshd.common.util.buffer.Buffer,org.apache.sshd.common.util.buffer.Buffer>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte
private static final byte
Fields inherited from class org.eclipse.jgit.internal.transport.sshd.auth.BasicAuthentication
password, user
Fields inherited from class org.eclipse.jgit.internal.transport.sshd.auth.AbstractAuthenticationHandler
done, params, proxy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Asks for credentials via the globalAuthenticator
.org.apache.sshd.common.util.buffer.Buffer
getToken()
Retrieves the last token generated.void
process()
Produces the next authentication token, if any.Methods inherited from class org.eclipse.jgit.internal.transport.sshd.auth.BasicAuthentication
clearPassword, close, start
Methods inherited from class org.eclipse.jgit.internal.transport.sshd.auth.AbstractAuthenticationHandler
isDone, setParams
-
Field Details
-
SOCKS_BASIC_PROTOCOL_VERSION
private static final byte SOCKS_BASIC_PROTOCOL_VERSION- See Also:
-
SOCKS_BASIC_AUTH_SUCCESS
private static final byte SOCKS_BASIC_AUTH_SUCCESS- See Also:
-
-
Constructor Details
-
SocksBasicAuthentication
public SocksBasicAuthentication()
-
-
Method Details
-
process
Description copied from interface:AuthenticationHandler
Produces the next authentication token, if any.- Specified by:
process
in interfaceAuthenticationHandler<org.apache.sshd.common.util.buffer.Buffer,
org.apache.sshd.common.util.buffer.Buffer> - Overrides:
process
in classBasicAuthentication<org.apache.sshd.common.util.buffer.Buffer,
org.apache.sshd.common.util.buffer.Buffer> - Throws:
Exception
- if an error occurs
-
askCredentials
protected void askCredentials()Description copied from class:BasicAuthentication
Asks for credentials via the globalAuthenticator
.- Overrides:
askCredentials
in classBasicAuthentication<org.apache.sshd.common.util.buffer.Buffer,
org.apache.sshd.common.util.buffer.Buffer>
-
getToken
Description copied from interface:AuthenticationHandler
Retrieves the last token generated.- Returns:
- the token, or
null
if there is none - Throws:
IOException
-