Package org.attribyte.api.http
Interface Authorizer
public interface Authorizer
Examines request headers, parameters or content
to determine if a request is authorized.
-
Method Summary
Modifier and TypeMethodDescriptionisAuthorized(AuthScheme auth, Request request) Determine if a request is authorized.
-
Method Details
-
isAuthorized
Determine if a request is authorized.- Parameters:
auth- The authentication scheme.request- The HTTP request.- Returns:
- The HTTP "Unauthorized" (or some other) response to be returned to the client if the request is not authorized. Otherwise,
null. - Throws:
org.attribyte.api.DatastoreException- on error retrieving security credentials.
-