Class Socks5ClientConnector.SocksBasicAuthentication

  • 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.SocksBasicAuthentication
    extends BasicAuthentication<org.apache.sshd.common.util.buffer.Buffer,​org.apache.sshd.common.util.buffer.Buffer>
    See Also:
    RFC 1929
    • Field Detail

      • SOCKS_BASIC_PROTOCOL_VERSION

        private static final byte SOCKS_BASIC_PROTOCOL_VERSION
        See Also:
        Constant Field Values
      • SOCKS_BASIC_AUTH_SUCCESS

        private static final byte SOCKS_BASIC_AUTH_SUCCESS
        See Also:
        Constant Field Values
    • Constructor Detail

      • SocksBasicAuthentication

        public SocksBasicAuthentication()
    • Method Detail

      • process

        public void process()
                     throws java.lang.Exception
        Description copied from interface: AuthenticationHandler
        Produces the next authentication token, if any.
        Specified by:
        process in interface AuthenticationHandler<org.apache.sshd.common.util.buffer.Buffer,​org.apache.sshd.common.util.buffer.Buffer>
        Overrides:
        process in class BasicAuthentication<org.apache.sshd.common.util.buffer.Buffer,​org.apache.sshd.common.util.buffer.Buffer>
        Throws:
        java.lang.Exception - if an error occurs
      • askCredentials

        protected void askCredentials()
        Description copied from class: BasicAuthentication
        Asks for credentials via the global Authenticator.
        Overrides:
        askCredentials in class BasicAuthentication<org.apache.sshd.common.util.buffer.Buffer,​org.apache.sshd.common.util.buffer.Buffer>
      • getToken

        public org.apache.sshd.common.util.buffer.Buffer getToken()
                                                           throws java.io.IOException
        Description copied from interface: AuthenticationHandler
        Retrieves the last token generated.
        Returns:
        the token, or null if there is none
        Throws:
        java.io.IOException