Class ExampleAuthenticationProvider
java.lang.Object
ExampleAuthenticationProvider
- All Implemented Interfaces:
- AuthenticationProvider
public class ExampleAuthenticationProvider
- extends Object
- implements AuthenticationProvider
An authentication provider enables the server to authenticate users.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExampleAuthenticationProvider
public ExampleAuthenticationProvider()
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.