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 Details

  • Constructor Details

    • SocksGssApiAuthentication

      public SocksGssApiAuthentication()
  • Method Details

    • createContext

      protected GSSContext createContext() throws Exception
      Description copied from class: GssApiAuthentication
      Creates the GSSContext to use.
      Specified by:
      createContext in class GssApiAuthentication<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

      public org.apache.sshd.common.util.buffer.Buffer getToken() throws Exception
      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

      protected byte[] extractToken(org.apache.sshd.common.util.buffer.Buffer input) throws Exception
      Description copied from class: GssApiAuthentication
      Extracts the token from the last set parameters.
      Specified by:
      extractToken in class GssApiAuthentication<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