public class AllowAnythingPasswordAuthenticator extends PasswordAuthenticationProvider
Constructor and Description |
---|
AllowAnythingPasswordAuthenticator() |
Modifier and Type | Method and Description |
---|---|
boolean |
changePassword(Connection<SshServerContext> con,
String username,
String oldpassword,
String newpassword)
Implement this method to change the users password
|
boolean |
verifyPassword(Connection<SshServerContext> con,
String username,
String password)
Implement this method to log the user into the system.
|
getName
public boolean verifyPassword(Connection<SshServerContext> con, String username, String password) throws PasswordChangeException
PasswordAuthenticationProvider
verifyPassword
in class PasswordAuthenticationProvider
PasswordChangeException
- throw this exception if the users password requires a changing.public boolean changePassword(Connection<SshServerContext> con, String username, String oldpassword, String newpassword) throws PasswordChangeException
PasswordAuthenticationProvider
changePassword
in class PasswordAuthenticationProvider
PasswordChangeException
Copyright © 2016. All rights reserved.