Class GssApiWithMicAuthentication

java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.client.auth.AbstractUserAuth
org.eclipse.jgit.internal.transport.sshd.GssApiWithMicAuthentication
All Implemented Interfaces:
org.apache.sshd.client.auth.UserAuth, org.apache.sshd.client.session.ClientSessionHolder, org.apache.sshd.common.auth.UserAuthInstance<org.apache.sshd.client.session.ClientSession>, org.apache.sshd.common.NamedResource

public class GssApiWithMicAuthentication extends org.apache.sshd.client.auth.AbstractUserAuth
GSSAPI-with-MIC authentication handler (Kerberos 5).
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • sendAuthDataRequest

      protected boolean sendAuthDataRequest(org.apache.sshd.client.session.ClientSession session, String service) throws Exception
      Specified by:
      sendAuthDataRequest in class org.apache.sshd.client.auth.AbstractUserAuth
      Throws:
      Exception
    • processAuthDataRequest

      protected boolean processAuthDataRequest(org.apache.sshd.client.session.ClientSession session, String service, org.apache.sshd.common.util.buffer.Buffer in) throws Exception
      Specified by:
      processAuthDataRequest in class org.apache.sshd.client.auth.AbstractUserAuth
      Throws:
      Exception
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.apache.sshd.client.auth.UserAuth
      Overrides:
      destroy in class org.apache.sshd.client.auth.AbstractUserAuth
    • close

      private void close(boolean silent)
    • sendToken

      private void sendToken(org.apache.sshd.client.session.ClientSession session, byte[] receivedToken) throws IOException, GSSException
      Throws:
      IOException
      GSSException
    • sendMic

      private void sendMic(org.apache.sshd.client.session.ClientSession session, String service) throws IOException, GSSException
      Throws:
      IOException
      GSSException
    • replyToken

      private void replyToken(org.apache.sshd.client.session.ClientSession session, String service, byte[] bytes) throws IOException, GSSException
      Throws:
      IOException
      GSSException
    • getHostName

      private String getHostName(org.apache.sshd.client.session.ClientSession session)
    • unexpectedMessage

      private boolean unexpectedMessage(int command)