Class LDAPUserAuthenticationService
java.lang.Object
com.peterphi.usermanager.guice.authentication.ldap.LDAPUserAuthenticationService
- All Implemented Interfaces:
UserAuthenticationService
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(String sessionReconnectToken) authenticate(String username, String password, boolean basicAuth) voidCalled periodically to request that the background tasks needed by this authentication service be performedgetById(int id) voidopportunisticallyRefreshUserData(String username, String password) Temporarily borrow a user's credentials to run an opportunistic user data refreshvoidrefreshAllUserData(LDAPUser authUser, String password, boolean opportunistic) boolean
-
Field Details
-
autoRefreshUserData
@Inject(optional=true) public boolean autoRefreshUserData -
autoRefreshUsername
-
autoRefreshPassword
-
-
Constructor Details
-
LDAPUserAuthenticationService
public LDAPUserAuthenticationService()
-
-
Method Details
-
getById
- Specified by:
getByIdin interfaceUserAuthenticationService
-
authenticate
- Specified by:
authenticatein interfaceUserAuthenticationService
-
authenticate
- Specified by:
authenticatein interfaceUserAuthenticationService
-
shouldOpportunisticallyRefreshUserData
public boolean shouldOpportunisticallyRefreshUserData() -
opportunisticallyRefreshUserData
Temporarily borrow a user's credentials to run an opportunistic user data refresh- Parameters:
username-password-
-
executeBackgroundTasks
public void executeBackgroundTasks()Description copied from interface:UserAuthenticationServiceCalled periodically to request that the background tasks needed by this authentication service be performed- Specified by:
executeBackgroundTasksin interfaceUserAuthenticationService
-
refreshAllUserData
-