public interface AuthenticationManager
| 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.
|
Authentication authenticateUser(String tenant, String username, String password) throws AuthenticationException
tenant - the tenant's name the user profile belongs tousername - the user's usernamepassword - the user's passwordAuthenticationExceptionAuthentication authenticateUser(String[] tenants, String username, String password) throws AuthenticationException
tenants - the tenant chain to try authentication withusername - the user's usernamepassword - the user's passwordAuthenticationExceptionAuthentication authenticateUser(Profile profile) throws AuthenticationException
profile - the user's profileAuthenticationExceptionAuthentication authenticateUser(Profile profile, boolean remembered) throws AuthenticationException
profile - the user's profileremembered - if the authentication was done through remember me.AuthenticationExceptionAuthentication getAuthentication(String ticket, boolean reloadProfile) throws AuthenticationException
ticket - the authentication ticketreloadProfile - if the cached profile should be reloadedAuthenticationExceptionvoid invalidateAuthentication(Authentication authentication) throws AuthenticationException
authentication - the authentication to invalidateAuthenticationExceptionCopyright © 2023 CrafterCMS. All rights reserved.