com.maverick.sshd.flatfile
Class FlatFilePasswordAuthenticationProvider

java.lang.Object
  extended by com.maverick.sshd.PasswordAuthenticationProvider
      extended by com.maverick.sshd.flatfile.FlatFilePasswordAuthenticationProvider
All Implemented Interfaces:
AuthenticationProvider

public class FlatFilePasswordAuthenticationProvider
extends PasswordAuthenticationProvider


Constructor Summary
FlatFilePasswordAuthenticationProvider()
           
 
Method Summary
 boolean changePassword(Connection con, String username, String oldpassword, String newpassword)
          Implement this method to change the users password
 boolean verifyPassword(Connection con, String username, String password)
          Implement this method to log the user into the system.
 
Methods inherited from class com.maverick.sshd.PasswordAuthenticationProvider
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatFilePasswordAuthenticationProvider

public FlatFilePasswordAuthenticationProvider()
Method Detail

verifyPassword

public boolean verifyPassword(Connection con,
                              String username,
                              String password)
                       throws PasswordChangeException
Description copied from class: PasswordAuthenticationProvider
Implement this method to log the user into the system.

Specified by:
verifyPassword in class PasswordAuthenticationProvider
Returns:
boolean
Throws:
PasswordChangeException - throw this exception if the users password requires a changing.

changePassword

public boolean changePassword(Connection con,
                              String username,
                              String oldpassword,
                              String newpassword)
                       throws PasswordChangeException
Description copied from class: PasswordAuthenticationProvider
Implement this method to change the users password

Specified by:
changePassword in class PasswordAuthenticationProvider
Returns:
boolean
Throws:
PasswordChangeException


Copyright © 2012. All Rights Reserved.