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:
java.io.Closeable,java.lang.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:
- RFC 1929
-
-
Field Summary
Fields Modifier and Type Field Description private static byteSOCKS_BASIC_AUTH_SUCCESSprivate static byteSOCKS_BASIC_PROTOCOL_VERSION-
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 Constructor Description SocksBasicAuthentication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaskCredentials()Asks for credentials via the globalAuthenticator.org.apache.sshd.common.util.buffer.BuffergetToken()Retrieves the last token generated.voidprocess()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 Detail
-
SOCKS_BASIC_PROTOCOL_VERSION
private static final byte SOCKS_BASIC_PROTOCOL_VERSION
- See Also:
- Constant Field Values
-
SOCKS_BASIC_AUTH_SUCCESS
private static final byte SOCKS_BASIC_AUTH_SUCCESS
- See Also:
- Constant Field Values
-
-
Method Detail
-
process
public void process() throws java.lang.ExceptionDescription copied from interface:AuthenticationHandlerProduces the next authentication token, if any.- Specified by:
processin interfaceAuthenticationHandler<org.apache.sshd.common.util.buffer.Buffer,org.apache.sshd.common.util.buffer.Buffer>- Overrides:
processin classBasicAuthentication<org.apache.sshd.common.util.buffer.Buffer,org.apache.sshd.common.util.buffer.Buffer>- Throws:
java.lang.Exception- if an error occurs
-
askCredentials
protected void askCredentials()
Description copied from class:BasicAuthenticationAsks for credentials via the globalAuthenticator.- Overrides:
askCredentialsin classBasicAuthentication<org.apache.sshd.common.util.buffer.Buffer,org.apache.sshd.common.util.buffer.Buffer>
-
getToken
public org.apache.sshd.common.util.buffer.Buffer getToken() throws java.io.IOExceptionDescription copied from interface:AuthenticationHandlerRetrieves the last token generated.- Returns:
- the token, or
nullif there is none - Throws:
java.io.IOException
-
-