Class BogusPasswordAuthenticator

  • All Implemented Interfaces:
    org.apache.sshd.server.auth.password.PasswordAuthenticator

    public class BogusPasswordAuthenticator
    extends org.apache.sshd.common.util.logging.AbstractLoggingBean
    implements org.apache.sshd.server.auth.password.PasswordAuthenticator
    A test PasswordAuthenticator that accepts an authentication attempt if the username is not null and same as password
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static BogusPasswordAuthenticator INSTANCE  
      • Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean

        log
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean authenticate​(java.lang.String username, java.lang.String password, org.apache.sshd.server.session.ServerSession session)  
      • 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.sshd.server.auth.password.PasswordAuthenticator

        handleClientPasswordChangeRequest
    • Constructor Detail

      • BogusPasswordAuthenticator

        public BogusPasswordAuthenticator()
    • Method Detail

      • authenticate

        public boolean authenticate​(java.lang.String username,
                                    java.lang.String password,
                                    org.apache.sshd.server.session.ServerSession session)
        Specified by:
        authenticate in interface org.apache.sshd.server.auth.password.PasswordAuthenticator