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
FieldsModifier and TypeFieldDescriptionstatic final Authorizer.ResultConvenient placeholder for ok result. -
Method Summary
-
Field Details
-
OK
Convenient placeholder for ok result.
-
-
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.
-