Class 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
    • Constructor Detail

      • SocksGssApiAuthentication

        public SocksGssApiAuthentication()
    • Method Detail

      • createContext

        protected org.ietf.jgss.GSSContext createContext()
                                                  throws java.lang.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:
        java.lang.Exception - if the context cannot be created
      • getToken

        public org.apache.sshd.common.util.buffer.Buffer getToken()
                                                           throws java.lang.Exception
        Description copied from interface: AuthenticationHandler
        Retrieves the last token generated.
        Returns:
        the token, or null if 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.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:
        java.lang.Exception - if an error occurs