public class AuthenticationManagerImpl extends Object implements AuthenticationManager
AuthenticationManager.| Modifier and Type | Field and Description |
|---|---|
protected AuthenticationCache |
authenticationCache |
protected AuthenticationService |
authenticationService |
protected ProfileService |
profileService |
| Constructor and Description |
|---|
AuthenticationManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
Authentication |
authenticateUser(Profile profile)
Authenticates a user just with it's profile ID.
|
Authentication |
authenticateUser(Profile profile,
boolean remembered)
Authenticates a user just with it's profile ID.
|
Authentication |
authenticateUser(String[] tenants,
String username,
String password)
Authenticates a user.
|
Authentication |
authenticateUser(String tenant,
String username,
String password)
Authenticates a user.
|
Authentication |
getAuthentication(String ticket,
boolean reloadProfile)
Returns the authentication associated to the given ticket ID
|
void |
invalidateAuthentication(Authentication authentication)
Invalidates the given authentication.
|
protected Profile |
loadProfile(String ticketId) |
void |
setAuthenticationCache(AuthenticationCache authenticationCache) |
void |
setAuthenticationService(AuthenticationService authenticationService) |
void |
setProfileService(ProfileService profileService) |
protected AuthenticationService authenticationService
protected ProfileService profileService
protected AuthenticationCache authenticationCache
public void setAuthenticationService(AuthenticationService authenticationService)
public void setProfileService(ProfileService profileService)
public void setAuthenticationCache(AuthenticationCache authenticationCache)
public Authentication authenticateUser(String tenant, String username, String password)
AuthenticationManagerauthenticateUser in interface AuthenticationManagertenant - the tenant's name the user profile belongs tousername - the user's usernamepassword - the user's passwordpublic Authentication authenticateUser(String[] tenants, String username, String password) throws AuthenticationException
AuthenticationManagerauthenticateUser in interface AuthenticationManagertenants - the tenant chain to try authentication withusername - the user's usernamepassword - the user's passwordAuthenticationExceptionpublic Authentication authenticateUser(Profile profile) throws AuthenticationException
AuthenticationManagerauthenticateUser in interface AuthenticationManagerprofile - the user's profileAuthenticationExceptionpublic Authentication authenticateUser(Profile profile, boolean remembered) throws AuthenticationException
AuthenticationManagerauthenticateUser in interface AuthenticationManagerprofile - the user's profileremembered - if the authentication was done through remember me.AuthenticationExceptionpublic Authentication getAuthentication(String ticket, boolean reloadProfile) throws AuthenticationException
AuthenticationManagergetAuthentication in interface AuthenticationManagerticket - the authentication ticketreloadProfile - if the cached profile should be reloadedAuthenticationExceptionpublic void invalidateAuthentication(Authentication authentication)
AuthenticationManagerinvalidateAuthentication in interface AuthenticationManagerauthentication - the authentication to invalidateprotected Profile loadProfile(String ticketId) throws AuthenticationException
AuthenticationExceptionCopyright © 2023 CrafterCMS. All rights reserved.