Class AuthenticationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.codename1.backend.security.AuthenticationException
Direct Known Subclasses:
AccountStatusException, AuthenticationServiceException, BadCredentialsException, InsufficientAuthenticationException, OAuth2AuthenticationException, ProviderNotFoundException, UsernameNotFoundException, WebAuthnException

public abstract class AuthenticationException extends RuntimeException
The request could not be authenticated. Thrown anywhere under a SecurityFilterChain -- a filter, a controller, a service -- it is answered by the chain's AuthenticationEntryPoint: a 401 carrying a challenge, or a redirect to the login page.
  • Constructor Details

    • AuthenticationException

      protected AuthenticationException(String message)
    • AuthenticationException

      protected AuthenticationException(String message, Throwable cause)