Class ExampleAuthenticationProvider

java.lang.Object
  extended by ExampleAuthenticationProvider
All Implemented Interfaces:
AuthenticationProvider

public class ExampleAuthenticationProvider
extends Object
implements AuthenticationProvider

An authentication provider enables the server to authenticate users.


Constructor Summary
ExampleAuthenticationProvider()
           
 
Method Summary
 boolean changePassword(Connection con, String username, String oldpassword, String newpassword)
           
protected  boolean checkPassword(String username, String password)
           
 void endSession(Connection con)
           
 String getGroup(Connection con)
           
 String[] getLoggedOnUsers()
           
 InetAddress getRemoteAddress(String sessionIdentifier)
           
 void startSession(Connection con)
           
 boolean verifyPassword(Connection con, String username, String password, SocketAddress ipAddress)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleAuthenticationProvider

public ExampleAuthenticationProvider()
Method Detail

verifyPassword

public boolean verifyPassword(Connection con,
                              String username,
                              String password,
                              SocketAddress ipAddress)
                       throws PasswordChangeException
Specified by:
verifyPassword in interface AuthenticationProvider
Throws:
PasswordChangeException

checkPassword

protected boolean checkPassword(String username,
                                String password)

getGroup

public String getGroup(Connection con)
Specified by:
getGroup in interface AuthenticationProvider

changePassword

public boolean changePassword(Connection con,
                              String username,
                              String oldpassword,
                              String newpassword)
Specified by:
changePassword in interface AuthenticationProvider

startSession

public void startSession(Connection con)
Specified by:
startSession in interface AuthenticationProvider

endSession

public void endSession(Connection con)
Specified by:
endSession in interface AuthenticationProvider

getRemoteAddress

public InetAddress getRemoteAddress(String sessionIdentifier)

getLoggedOnUsers

public String[] getLoggedOnUsers()


Copyright © 2012. All Rights Reserved.