Class InMemoryPasswordAuthenticator

java.lang.Object
com.sshtools.common.auth.PasswordAuthenticationProvider
com.sshtools.server.InMemoryPasswordAuthenticator
All Implemented Interfaces:
com.sshtools.common.auth.Authenticator

public class InMemoryPasswordAuthenticator extends com.sshtools.common.auth.PasswordAuthenticationProvider
  • Constructor Details

    • InMemoryPasswordAuthenticator

      public InMemoryPasswordAuthenticator()
  • Method Details

    • addUser

      public InMemoryPasswordAuthenticator addUser(String name, char[] password)
    • verifyPassword

      public boolean verifyPassword(com.sshtools.common.ssh.SshConnection con, String username, String password) throws com.sshtools.common.auth.PasswordChangeException, IOException
      Specified by:
      verifyPassword in class com.sshtools.common.auth.PasswordAuthenticationProvider
      Throws:
      com.sshtools.common.auth.PasswordChangeException
      IOException
    • changePassword

      public boolean changePassword(com.sshtools.common.ssh.SshConnection con, String username, String oldpassword, String newpassword) throws com.sshtools.common.auth.PasswordChangeException, IOException
      Specified by:
      changePassword in class com.sshtools.common.auth.PasswordAuthenticationProvider
      Throws:
      com.sshtools.common.auth.PasswordChangeException
      IOException