|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ofbiz.crowd.CrowdWorker
org.ofbiz.crowd.CrowdAuthenticator
public class CrowdAuthenticator
CrowdAuthenticator
| Field Summary | |
|---|---|
protected Delegator |
delegator
|
protected LocalDispatcher |
dispatcher
|
| Constructor Summary | |
|---|---|
CrowdAuthenticator()
|
|
| 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 synchronzied 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 |
| Methods inherited from class org.ofbiz.crowd.CrowdWorker |
|---|
callAuthenticate, callGetUser, callUpdatePassword |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected LocalDispatcher dispatcher
protected Delegator delegator
| Constructor Detail |
|---|
public CrowdAuthenticator()
| Method Detail |
|---|
public void initialize(LocalDispatcher dispatcher)
initialize in interface Authenticatordispatcher - The LocalDispatcher to use for this Authenticator
public boolean authenticate(java.lang.String username,
java.lang.String password,
boolean isServiceAuth)
throws AuthenticatorException
authenticate in interface Authenticatorusername - User's usernamepassword - User's passwordisServiceAuth - true if authentication is for a service call
AuthenticatorException - when a fatal error occurs during authentication
public void logout(java.lang.String username)
throws AuthenticatorException
logout in interface Authenticatorusername - User's username
AuthenticatorException - when logout fails
public void syncUser(java.lang.String username)
throws AuthenticatorException
syncUser in interface Authenticatorusername - User's username
AuthenticatorException - user synchronization fails
public void updatePassword(java.lang.String username,
java.lang.String password,
java.lang.String newPassword)
throws AuthenticatorException
updatePassword in interface Authenticatorusername - User's usernamepassword - User's current passwordnewPassword - User's new password
AuthenticatorException - when update password failspublic float getWeight()
getWeight in interface Authenticatorpublic boolean isUserSynchronized()
isUserSynchronized in interface Authenticatorpublic boolean isSingleAuthenticator()
isSingleAuthenticator in interface Authenticatorpublic boolean isEnabled()
isEnabled in interface Authenticator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||