@Deprecated public class

AuthenticationFailedException

extends AuthenticationException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.atlassian.stash.exception.ServiceException
           ↳ com.atlassian.stash.user.AuthenticationException
             ↳ com.atlassian.stash.exception.AuthenticationFailedException
Known Direct Subclasses
Known Indirect Subclasses

This class is deprecated.
This exception is too broad, requiring callers to parse the exception message if they wish to know the real reason authentication failed. A richer hierarchy has been added in Stash 2.0, allowing callers to catch specific, strongly-typed exceptions instead. This exception will be removed in Stash 3.0.

Class Overview

Represents the occurrence of a failed attempt to authenticate a user.

Summary

Public Constructors
AuthenticationFailedException(KeyedMessage message, boolean captchaRequired)
Constructs an authentication failed exception with the given message and capture-required indicator.
Public Methods
boolean isCaptchaRequired()
Returns a boolean indicating whether the user is required to provide a CAPTCHA response subsequent to this authentication failure.
[Expand]
Inherited Methods
From class com.atlassian.stash.exception.ServiceException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public AuthenticationFailedException (KeyedMessage message, boolean captchaRequired)

Constructs an authentication failed exception with the given message and capture-required indicator.

Parameters
message an internationalised message suitable for display to a user
captchaRequired whether the user should be required to provide a CAPTCHA response subsequent to this authentication failure

Public Methods

public boolean isCaptchaRequired ()

Returns a boolean indicating whether the user is required to provide a CAPTCHA response subsequent to this authentication failure.

Returns
  • true if the user is required to provide a CAPTCHA response; otherwise, false