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 intSOCKS5_GSSAPI_FAILUREprivate static byteSOCKS5_GSSAPI_TOKENprivate static byteSOCKS5_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.GSSContextcreateContext()Creates 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, 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.ExceptionDescription 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:
java.lang.Exception- if the context cannot be created
-
getToken
public org.apache.sshd.common.util.buffer.Buffer getToken() throws java.lang.ExceptionDescription copied from interface:AuthenticationHandlerRetrieves the last token generated.- Returns:
- the token, or
nullif 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.ExceptionDescription 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:
java.lang.Exception- if an error occurs
-
-