Class DeniedReason

java.lang.Object
com.atlassian.jira.bc.security.login.DeniedReason
Direct Known Subclasses:
CaptchaChallengeRequired

@Immutable public class DeniedReason extends Object
This class is used to indicate the reason why authentication has been denied.
Since:
v4.3
See Also:
  • Field Details

  • Constructor Details

    • DeniedReason

      public DeniedReason(String reasonCode)
      Creates a new DenialReason with no additional properties.
      Parameters:
      reasonCode - the reason code for the denial
    • DeniedReason

      public DeniedReason(String reasonCode, Map<String,String> reasonSpecificProperties)
      Creates a new DenialReason with properties.
      Parameters:
      reasonCode - the reason code for the denial
      reasonSpecificProperties - the reason-specific properties
  • Method Details

    • asString

      public String asString()
      Returns a string representation of this DenialReason, which is suitable for inclusion in a HTTP response header.
      Returns:
      a string representation of this DenialReason.
    • toString

      public String toString()
      Returns a string representation of the object.
      Overrides:
      toString in class Object