public abstract class AbstractJAASAuthenticationProvider extends PasswordAuthenticationProvider
| Modifier and Type | Field and Description |
|---|---|
protected List<Connection> |
connections |
static String |
LOGIN_CONTEXT |
protected Map<String,LoginContext> |
logins |
| Constructor and Description |
|---|
AbstractJAASAuthenticationProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
changePassword(Connection con,
String username,
String oldpassword,
String newpassword)
Implement this method to change the users password
|
List<Connection> |
getConnections() |
abstract Configuration |
getJAASConfiguration() |
LoginContext |
getLoginContext(String con) |
boolean |
verifyPassword(Connection con,
String username,
String password)
Implement this method to log the user into the system.
|
getNameprotected final Map<String,LoginContext> logins
protected final List<Connection> connections
public static final String LOGIN_CONTEXT
public LoginContext getLoginContext(String con)
public boolean changePassword(Connection con, String username, String oldpassword, String newpassword)
PasswordAuthenticationProviderchangePassword in class PasswordAuthenticationProviderpublic abstract Configuration getJAASConfiguration()
public boolean verifyPassword(Connection con, String username, String password) throws PasswordChangeException
PasswordAuthenticationProviderverifyPassword in class PasswordAuthenticationProviderPasswordChangeException - throw this exception if the users password requires a changing.public List<Connection> getConnections()
Copyright © 2012. All Rights Reserved.