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:
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.SocksGssApiAuthentication extends GssApiAuthentication<org.apache.sshd.common.util.buffer.Buffer,org.apache.sshd.common.util.buffer.Buffer>
- See Also:
- RFC 1961
-
-
Field Summary
Fields Modifier and Type Field Description private static int
SOCKS5_GSSAPI_FAILURE
private static byte
SOCKS5_GSSAPI_TOKEN
private static byte
SOCKS5_GSSAPI_VERSION
-
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 Constructor Description SocksGssApiAuthentication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.ietf.jgss.GSSContext
createContext()
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 Detail
-
SOCKS5_GSSAPI_VERSION
private static final byte SOCKS5_GSSAPI_VERSION
- See Also:
- Constant Field Values
-
SOCKS5_GSSAPI_TOKEN
private static final byte SOCKS5_GSSAPI_TOKEN
- See Also:
- Constant Field Values
-
SOCKS5_GSSAPI_FAILURE
private static final int SOCKS5_GSSAPI_FAILURE
- See Also:
- Constant Field Values
-
-
Method Detail
-
createContext
protected org.ietf.jgss.GSSContext createContext() throws java.lang.Exception
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:
java.lang.Exception
- if the context cannot be created
-
getToken
public org.apache.sshd.common.util.buffer.Buffer getToken() throws java.lang.Exception
Description copied from interface:AuthenticationHandler
Retrieves the last token generated.- Returns:
- the token, or
null
if there is none - Throws:
java.lang.Exception
- if an error occurs
-
extractToken
protected byte[] extractToken(org.apache.sshd.common.util.buffer.Buffer input) throws java.lang.Exception
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:
java.lang.Exception
- if an error occurs
-
-