Interface Authorizer


public interface Authorizer
Examines request headers, parameters or content to determine if a request is authorized.
  • Method Summary

    Modifier and Type
    Method
    Description
    Determine if a request is authorized.
  • Method Details

    • isAuthorized

      Response isAuthorized(AuthScheme auth, Request request) throws org.attribyte.api.DatastoreException
      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.