Interface Authorizer.Result

All Known Implementing Classes:
Authorizer.Failure
Enclosing interface:
Authorizer

public static interface Authorizer.Result
ResultObject that encapsulates the result and the reason if something is not OK.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Authorizer.Result
    Convenient placeholder for ok result.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
     
  • Field Details

  • Method Details

    • isOK

      boolean isOK()
      Returns:
      boolean whether it is ok to proceed with this SearchRequest
    • getReason

      String getReason()
      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.