private class Socks5ClientConnector.SocksGssApiAuthentication extends GssApiAuthentication<org.apache.sshd.common.util.buffer.Buffer,org.apache.sshd.common.util.buffer.Buffer>
Modifier and Type | Field and Description |
---|---|
private static int |
SOCKS5_GSSAPI_FAILURE |
private static byte |
SOCKS5_GSSAPI_TOKEN |
private static byte |
SOCKS5_GSSAPI_VERSION |
token
done, params, proxy
Constructor and Description |
---|
SocksGssApiAuthentication() |
Modifier and Type | Method and Description |
---|---|
protected org.ietf.jgss.GSSContext |
createContext()
Creates the
GSSContext 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.
|
close, process, start
isDone, setParams
private static final byte SOCKS5_GSSAPI_VERSION
private static final byte SOCKS5_GSSAPI_TOKEN
private static final int SOCKS5_GSSAPI_FAILURE
protected org.ietf.jgss.GSSContext createContext() throws java.lang.Exception
GssApiAuthentication
GSSContext
to use.createContext
in class GssApiAuthentication<org.apache.sshd.common.util.buffer.Buffer,org.apache.sshd.common.util.buffer.Buffer>
GSSContext
to usejava.lang.Exception
- if the context cannot be createdpublic org.apache.sshd.common.util.buffer.Buffer getToken() throws java.lang.Exception
AuthenticationHandler
null
if there is nonejava.lang.Exception
- if an error occursprotected byte[] extractToken(org.apache.sshd.common.util.buffer.Buffer input) throws java.lang.Exception
GssApiAuthentication
extractToken
in class GssApiAuthentication<org.apache.sshd.common.util.buffer.Buffer,org.apache.sshd.common.util.buffer.Buffer>
input
- to extract the token fromnull
if nonejava.lang.Exception
- if an error occurs