Package digilib.auth

Interface AuthzOps

All Known Implementing Classes:
AuthzOpsImpl, MetaAccessAuthzOps, PathAuthzOps

public interface AuthzOps
Class of operations providing authorization.
  • Method Details

    • isAuthorizationRequired

      boolean isAuthorizationRequired(DigilibRequest request) throws AuthOpException
      Test if the request must be authorized to access the filepath. Information about the user is taken from the DigilibRequest.
      Parameters:
      request - DigilibRequest with user information.
      Returns:
      true if the user request must be authorized.
      Throws:
      AuthOpException - Exception thrown on error.
    • isAuthorized

      boolean isAuthorized(DigilibRequest request) throws AuthOpException
      Test if the request is authorized to access filepath.
      Parameters:
      request - Request with user information.
      Returns:
      true if the request is allowed.
      Throws:
      AuthOpException - Exception thrown on error.
    • init

      void init(DigilibConfiguration dlConfig) throws AuthOpException
      Configure this AuthzOps instance.
      Parameters:
      dlConfig - current DigilibConfiguration
      Throws:
      AuthOpException - Exception thrown on error