|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Authenticator
Authenticator Classes which implement this interface (directly) will be auto-discovered and loaded as Authenticators as long as isEnabled() returns true. All implementations MUST be in the org.ofbiz top level package in order to be discovered.
| Method Summary | |
|---|---|
boolean |
authenticate(java.lang.String username,
java.lang.String password,
boolean isServiceAuth)
Method to authenticate a user |
float |
getWeight()
Weight of this authenticator (lower weights are run first) |
void |
initialize(LocalDispatcher dispatcher)
Method called when authenticator is first initialized (the delegator object can be obtained from the LocalDispatcher) |
boolean |
isEnabled()
Flag to test if this Authenticator is enabled |
boolean |
isSingleAuthenticator()
Is this expected to be the only authenticator, if so errors will be thrown when users cannot be found |
boolean |
isUserSynchronized()
Is the user synchronized back to OFBiz |
void |
logout(java.lang.String username)
Logs a user out |
void |
syncUser(java.lang.String username)
Reads user information and syncs it to OFBiz (i.e. |
void |
updatePassword(java.lang.String username,
java.lang.String password,
java.lang.String newPassword)
Updates a user's password |
| Method Detail |
|---|
void initialize(LocalDispatcher dispatcher)
dispatcher - The LocalDispatcher to use for this Authenticator
boolean authenticate(java.lang.String username,
java.lang.String password,
boolean isServiceAuth)
throws AuthenticatorException
username - User's usernamepassword - User's passwordisServiceAuth - true if authentication is for a service call
AuthenticatorException - when a fatal error occurs during authentication
void logout(java.lang.String username)
throws AuthenticatorException
username - User's username
AuthenticatorException - when logout fails
void syncUser(java.lang.String username)
throws AuthenticatorException
username - User's username
AuthenticatorException - user synchronization fails
void updatePassword(java.lang.String username,
java.lang.String password,
java.lang.String newPassword)
throws AuthenticatorException
username - User's usernamepassword - User's current passwordnewPassword - User's new password
AuthenticatorException - when update password failsfloat getWeight()
boolean isUserSynchronized()
boolean isSingleAuthenticator()
boolean isEnabled()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||