Uses of Class
org.craftercms.security.exception.AuthenticationException
-
-
Uses of AuthenticationException in org.craftercms.security.authentication
Methods in org.craftercms.security.authentication with parameters of type AuthenticationException Modifier and Type Method Description void
AuthenticationRequiredHandler. handle(org.craftercms.commons.http.RequestContext context, AuthenticationException e)
Handles the request when authentication is required.void
LoginFailureHandler. handle(org.craftercms.commons.http.RequestContext context, AuthenticationException e)
Handles the request after a failed authenticationMethods in org.craftercms.security.authentication that throw AuthenticationException Modifier and Type Method Description Authentication
AuthenticationManager. authenticateUser(String[] tenants, String username, String password)
Authenticates a user.Authentication
AuthenticationManager. authenticateUser(String tenant, String username, String password)
Authenticates a user.Authentication
AuthenticationManager. authenticateUser(Profile profile)
Authenticates a user just with it's profile ID.Authentication
AuthenticationManager. authenticateUser(Profile profile, boolean remembered)
Authenticates a user just with it's profile ID.Authentication
AuthenticationManager. getAuthentication(String ticket, boolean reloadProfile)
Returns the authentication associated to the given ticket IDvoid
AuthenticationManager. invalidateAuthentication(Authentication authentication)
Invalidates the given authentication. -
Uses of AuthenticationException in org.craftercms.security.authentication.impl
Methods in org.craftercms.security.authentication.impl with parameters of type AuthenticationException Modifier and Type Method Description void
AuthenticationRequiredHandlerImpl. handle(org.craftercms.commons.http.RequestContext context, AuthenticationException e)
Saves the current request in the request cache and then redirects to the login form page.void
LoginFailureHandlerImpl. handle(org.craftercms.commons.http.RequestContext context, AuthenticationException e)
Redirects the response to target URL if target URL is not empty.void
RestAuthenticationRequiredHandler. handle(org.craftercms.commons.http.RequestContext context, AuthenticationException e)
void
RestLoginFailureHandler. handle(org.craftercms.commons.http.RequestContext context, AuthenticationException e)
protected void
AuthenticationRequiredHandlerImpl. sendError(AuthenticationException e, org.craftercms.commons.http.RequestContext context)
protected void
LoginFailureHandlerImpl. sendError(AuthenticationException e, org.craftercms.commons.http.RequestContext context)
Methods in org.craftercms.security.authentication.impl that throw AuthenticationException Modifier and Type Method Description protected Authentication
RememberMeManagerImpl. authenticate(String profileId)
Authentication
AuthenticationManagerImpl. authenticateUser(String[] tenants, String username, String password)
Authentication
AuthenticationManagerImpl. authenticateUser(Profile profile)
Authentication
AuthenticationManagerImpl. authenticateUser(Profile profile, boolean remembered)
Authentication
AuthenticationManagerImpl. getAuthentication(String ticket, boolean reloadProfile)
protected Profile
AuthenticationManagerImpl. loadProfile(String ticketId)
-
Uses of AuthenticationException in org.craftercms.security.exception
Subclasses of AuthenticationException in org.craftercms.security.exception Modifier and Type Class Description class
AuthenticationRequiredException
Thrown if the user is required to authenticate to access a resource.class
AuthenticationSystemException
Thrown when something in the authentication system fails.class
BadCredentialsException
Thrown when user authentication fails because of invalid username/password.class
DisabledUserException
Thrown if an authentication attempt is performed with a disabled user.class
OAuth2Exception
Exception used when a OAuth2 provider returns an error on a login attempt. -
Uses of AuthenticationException in org.craftercms.security.exception.rememberme
Subclasses of AuthenticationException in org.craftercms.security.exception.rememberme Modifier and Type Class Description class
CookieTheftException
Thrown when a remember me cookie has been possibly stolen and is being used.class
InvalidCookieException
Thrown when a remember me cookie provided has an invalid format.class
RememberMeException
Root exception for remember me related errors. -
Uses of AuthenticationException in org.craftercms.security.processors.impl
Methods in org.craftercms.security.processors.impl with parameters of type AuthenticationException Modifier and Type Method Description protected void
LoginProcessor. onLoginFailure(org.craftercms.commons.http.RequestContext context, AuthenticationException e)
protected void
LoginProcessor. saveException(javax.servlet.http.HttpServletRequest request, AuthenticationException e)
-
Uses of AuthenticationException in org.craftercms.security.social
Methods in org.craftercms.security.social that throw AuthenticationException Modifier and Type Method Description Authentication
ProviderLoginSupport. complete(String tenant, String providerId, javax.servlet.http.HttpServletRequest request)
Completes the OAuth authentication, returning the resultingAuthentication
object, or null if it couldn't be completed.Authentication
ProviderLoginSupport. complete(String tenant, String providerId, javax.servlet.http.HttpServletRequest request, Set<String> newUserRoles, Map<String,Object> newUserAttributes)
Completes the OAuth authentication, returning the resultingAuthentication
object, or null if it couldn't be completed.Authentication
ProviderLoginSupport. complete(String tenant, String providerId, javax.servlet.http.HttpServletRequest request, Set<String> newUserRoles, Map<String,Object> newUserAttributes, org.springframework.social.connect.web.ConnectSupport connectSupport)
Completes the OAuth authentication, returning the resultingAuthentication
object, or null if it couldn't be completed.String
ProviderLoginSupport. start(String tenant, String providerId, javax.servlet.http.HttpServletRequest request)
Starts the OAuth login process.String
ProviderLoginSupport. start(String tenant, String providerId, javax.servlet.http.HttpServletRequest request, org.springframework.util.MultiValueMap<String,String> additionalUrlParams)
Starts the OAuth login process.String
ProviderLoginSupport. start(String tenant, String providerId, javax.servlet.http.HttpServletRequest request, org.springframework.util.MultiValueMap<String,String> additionalUrlParams, org.springframework.social.connect.web.ConnectSupport connectSupport)
Starts the OAuth login process. -
Uses of AuthenticationException in org.craftercms.security.social.impl
Methods in org.craftercms.security.social.impl that throw AuthenticationException Modifier and Type Method Description Authentication
ProviderLoginSupportImpl. complete(String tenant, String providerId, javax.servlet.http.HttpServletRequest request)
Authentication
ProviderLoginSupportImpl. complete(String tenant, String providerId, javax.servlet.http.HttpServletRequest request, Set<String> newUserRoles, Map<String,Object> newUserAttributes)
Authentication
ProviderLoginSupportImpl. complete(String tenant, String providerId, javax.servlet.http.HttpServletRequest request, Set<String> newUserRoles, Map<String,Object> newUserAttributes, org.springframework.social.connect.web.ConnectSupport connectSupport)
String
ProviderLoginSupportImpl. start(String tenant, String providerId, javax.servlet.http.HttpServletRequest request)
String
ProviderLoginSupportImpl. start(String tenant, String providerId, javax.servlet.http.HttpServletRequest request, org.springframework.util.MultiValueMap<String,String> additionalUrlParams)
String
ProviderLoginSupportImpl. start(String tenant, String providerId, javax.servlet.http.HttpServletRequest request, org.springframework.util.MultiValueMap<String,String> additionalUrlParams, org.springframework.social.connect.web.ConnectSupport connectSupport)
-