Class Socks5ClientConnector.SocksGssApiAuthentication
java.lang.Object
org.eclipse.jgit.internal.transport.sshd.auth.AbstractAuthenticationHandler<org.apache.sshd.common.util.buffer.Buffer,org.apache.sshd.common.util.buffer.Buffer>
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 int
private static final byte
private static final byte
Fields inherited from class org.eclipse.jgit.internal.transport.sshd.auth.GssApiAuthentication
token
Fields inherited from class org.eclipse.jgit.internal.transport.sshd.auth.AbstractAuthenticationHandler
done, params, proxy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected GSSContext
Creates theGSSContext
to 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.Buffer
getToken()
Retrieves the last token generated.Methods inherited from class org.eclipse.jgit.internal.transport.sshd.auth.GssApiAuthentication
close, process, start
Methods 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:GssApiAuthentication
Creates theGSSContext
to use.- Specified by:
createContext
in classGssApiAuthentication<org.apache.sshd.common.util.buffer.Buffer,
org.apache.sshd.common.util.buffer.Buffer> - Returns:
- a fresh
GSSContext
to use - Throws:
Exception
- if the context cannot be created
-
getToken
Description copied from interface:AuthenticationHandler
Retrieves the last token generated.- Returns:
- the token, or
null
if there is none - Throws:
Exception
- if an error occurs
-
extractToken
Description copied from class:GssApiAuthentication
Extracts the token from the last set parameters.- Specified by:
extractToken
in 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
null
if none - Throws:
Exception
- if an error occurs
-