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 passwordAuthenticationException
Authentication authenticateUser(String[] tenants, String username, String password) throws AuthenticationException
tenants
- the tenant chain to try authentication withusername
- the user's usernamepassword
- the user's passwordAuthenticationException
Authentication authenticateUser(Profile profile) throws AuthenticationException
profile
- the user's profileAuthenticationException
Authentication authenticateUser(Profile profile, boolean remembered) throws AuthenticationException
profile
- the user's profileremembered
- if the authentication was done through remember me.AuthenticationException
Authentication getAuthentication(String ticket, boolean reloadProfile) throws AuthenticationException
ticket
- the authentication ticketreloadProfile
- if the cached profile should be reloadedAuthenticationException
void invalidateAuthentication(Authentication authentication) throws AuthenticationException
authentication
- the authentication to invalidateAuthenticationException
Copyright © 2020 CrafterCMS. All rights reserved.