Class Authorizer.Failure

java.lang.Object
com.atlassian.jira.plugin.searchrequestview.auth.Authorizer.Failure
All Implemented Interfaces:
Authorizer.Result
Enclosing interface:
Authorizer

public static class Authorizer.Failure extends Object implements Authorizer.Result
Convenient impl for failures
  • Method Details

    • isOK

      public boolean isOK()
      Specified by:
      isOK in interface Authorizer.Result
      Returns:
      boolean whether it is ok to proceed with this SearchRequest
    • getReason

      public String getReason()
      Specified by:
      getReason in interface Authorizer.Result
      Returns:
      If not ok, return a String message why not.

      Note: this is deliberately not i18n as it ends up in a 403 http code which should be ASCII only to be specs compliant.