Class LDAPUserAuthenticationService
java.lang.Object
com.peterphi.usermanager.guice.authentication.ldap.LDAPUserAuthenticationService
- All Implemented Interfaces:
UserAuthenticationService
-
Field Summary
Modifier and TypeFieldDescriptionboolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(String sessionReconnectToken) authenticate
(String username, String password, boolean basicAuth) void
Called periodically to request that the background tasks needed by this authentication service be performedgetById
(int id) void
opportunisticallyRefreshUserData
(String username, String password) Temporarily borrow a user's credentials to run an opportunistic user data refreshvoid
refreshAllUserData
(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:
getById
in interfaceUserAuthenticationService
-
authenticate
- Specified by:
authenticate
in interfaceUserAuthenticationService
-
authenticate
- Specified by:
authenticate
in 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:UserAuthenticationService
Called periodically to request that the background tasks needed by this authentication service be performed- Specified by:
executeBackgroundTasks
in interfaceUserAuthenticationService
-
refreshAllUserData
-