|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deltava.security.ConnectionPoolAuthenticator
org.deltava.security.ApacheSQLAuthenticator
public class ApacheSQLAuthenticator
An Authenticator to authenticate users against Apache2-style database tables. Unlike the JDBCAuthenticator
class, this uses the existing JDBC Connection Pool. Since this implements SQLAuthenticator, this behavior can
be overriden by providing a JDBC Connection to use.
| Field Summary |
|---|
| Fields inherited from class org.deltava.security.ConnectionPoolAuthenticator |
|---|
_props |
| Fields inherited from interface org.deltava.security.Authenticator |
|---|
DEFAULT_PROPS_FILE |
| Constructor Summary | |
|---|---|
ApacheSQLAuthenticator()
|
|
| Method Summary | |
|---|---|
boolean |
accepts(Person usr)
This Authenticator will accept all users. |
void |
add(Person usr,
String pwd)
Adds a user to the Directory. |
void |
authenticate(Person usr,
String pwd)
Authenticates a user by validating the password against the database. |
boolean |
contains(Person usr)
Checks if a particular name exists in the Directory. |
void |
disable(Person usr)
Disables a user's account. |
void |
remove(Person usr)
Removes a user from the Directory. |
void |
rename(Person usr,
String newName)
Renames a user in the Directory. |
void |
updatePassword(Person usr,
String pwd)
Updates a User's password. |
| Methods inherited from class org.deltava.security.ConnectionPoolAuthenticator |
|---|
clearConnection, closeConnection, getConnection, init, setConnection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApacheSQLAuthenticator()
| Method Detail |
|---|
public void authenticate(Person usr,
String pwd)
throws SecurityException
usr - the User beanpwd - the supplied password
SecurityException - if a JDBC error occurspublic boolean accepts(Person usr)
usr - the user bean
public boolean contains(Person usr)
throws SecurityException
usr - the user bean
SecurityException - if a JDBC error occurs
public void updatePassword(Person usr,
String pwd)
throws SecurityException
usr - the User beanpwd - the new password
SecurityException - if a JDBC error occurs
public void add(Person usr,
String pwd)
throws SecurityException
usr - the User beanpwd - the User's password
SecurityException - if a JDBC error occurs
public void rename(Person usr,
String newName)
throws SecurityException
usr - the user beannewName - the new fully-qualified directory
SecurityException - if an error occurs
public void disable(Person usr)
throws SecurityException
usr - the user bean
SecurityException - if an error occurs
public void remove(Person usr)
throws SecurityException
usr - the user bean
SecurityException - if a JDBC error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||