Class Socks5ClientConnector.SocksGssApiAuthentication
java.lang.Object
org.eclipse.jgit.internal.transport.sshd.auth.AbstractAuthenticationHandler<ParameterType,TokenType>
org.eclipse.jgit.internal.transport.sshd.auth.GssApiAuthentication<org.apache.sshd.common.util.buffer.Buffer,org.apache.sshd.common.util.buffer.Buffer>
org.eclipse.jgit.internal.transport.sshd.proxy.Socks5ClientConnector.SocksGssApiAuthentication
- 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.SocksGssApiAuthentication
extends GssApiAuthentication<org.apache.sshd.common.util.buffer.Buffer,org.apache.sshd.common.util.buffer.Buffer>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final byteprivate static final byteFields inherited from class org.eclipse.jgit.internal.transport.sshd.auth.GssApiAuthentication
tokenFields inherited from class org.eclipse.jgit.internal.transport.sshd.auth.AbstractAuthenticationHandler
done, params, proxy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected GSSContextCreates theGSSContextto use.protected byte[]extractToken(org.apache.sshd.common.util.buffer.Buffer input) Extracts the token from the last set parameters.org.apache.sshd.common.util.buffer.BuffergetToken()Retrieves the last token generated.Methods inherited from class org.eclipse.jgit.internal.transport.sshd.auth.GssApiAuthentication
close, process, startMethods inherited from class org.eclipse.jgit.internal.transport.sshd.auth.AbstractAuthenticationHandler
isDone, setParams
-
Field Details
-
SOCKS5_GSSAPI_VERSION
private static final byte SOCKS5_GSSAPI_VERSION- See Also:
-
SOCKS5_GSSAPI_TOKEN
private static final byte SOCKS5_GSSAPI_TOKEN- See Also:
-
SOCKS5_GSSAPI_FAILURE
private static final int SOCKS5_GSSAPI_FAILURE- See Also:
-
-
Constructor Details
-
SocksGssApiAuthentication
public SocksGssApiAuthentication()
-
-
Method Details
-
createContext
Description copied from class:GssApiAuthenticationCreates theGSSContextto use.- Specified by:
createContextin classGssApiAuthentication<org.apache.sshd.common.util.buffer.Buffer,org.apache.sshd.common.util.buffer.Buffer> - Returns:
- a fresh
GSSContextto use - Throws:
Exception- if the context cannot be created
-
getToken
Description copied from interface:AuthenticationHandlerRetrieves the last token generated.- Returns:
- the token, or
nullif there is none - Throws:
Exception- if an error occurs
-
extractToken
Description copied from class:GssApiAuthenticationExtracts the token from the last set parameters.- Specified by:
extractTokenin classGssApiAuthentication<org.apache.sshd.common.util.buffer.Buffer,org.apache.sshd.common.util.buffer.Buffer> - Parameters:
input- to extract the token from- Returns:
- the extracted token, or
nullif none - Throws:
Exception- if an error occurs
-