Class UserAuthGSS

java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.server.auth.AbstractUserAuth
org.apache.sshd.server.auth.gss.UserAuthGSS
All Implemented Interfaces:
org.apache.sshd.common.auth.UserAuthInstance<ServerSession>, org.apache.sshd.common.auth.UsernameHolder, org.apache.sshd.common.NamedResource, UserAuth, ServerSessionHolder

public class UserAuthGSS extends AbstractUserAuth

Prototype user authentication handling gssapi-with-mic. Implements HandshakingUserAuth because the process involves several steps.

Several methods are available for overriding in specific circumstances.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Oid
     
    static final Oid
     
    static final String
     

    Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean

    log

    Fields inherited from interface org.apache.sshd.common.NamedResource

    BY_NAME_COMPARATOR, NAME_EXTRACTOR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Oid
    Utility to construct an Oid from a string, ignoring the annoying exception.
    void
    Free any system resources used by the module.
    protected Boolean
    doAuth(org.apache.sshd.common.util.buffer.Buffer buffer, boolean initial)
     

    Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean

    debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • NAME

      public static final String NAME
      See Also:
    • KRB5_MECH

      public static final Oid KRB5_MECH
    • KRB5_NT_PRINCIPAL

      public static final Oid KRB5_NT_PRINCIPAL
  • Constructor Details

    • UserAuthGSS

      public UserAuthGSS()
  • Method Details

    • doAuth

      protected Boolean doAuth(org.apache.sshd.common.util.buffer.Buffer buffer, boolean initial) throws Exception
      Specified by:
      doAuth in class AbstractUserAuth
      Throws:
      Exception
    • destroy

      public void destroy()
      Free any system resources used by the module.
      Specified by:
      destroy in interface UserAuth
      Overrides:
      destroy in class AbstractUserAuth
    • createOID

      public static Oid createOID(String rep)
      Utility to construct an Oid from a string, ignoring the annoying exception.
      Parameters:
      rep - The string form
      Returns:
      The Oid