Package digilib.auth
Interface AuthzOps
- All Known Implementing Classes:
AuthzOpsImpl,MetaAccessAuthzOps,PathAuthzOps
public interface AuthzOps
Class of operations providing authorization.
-
Method Summary
Modifier and TypeMethodDescriptionvoidinit(DigilibConfiguration dlConfig) Configure this AuthzOps instance.booleanisAuthorizationRequired(DigilibRequest request) Test if the request must be authorized to access the filepath.booleanisAuthorized(DigilibRequest request) Test if the request is authorized to access filepath.
-
Method Details
-
isAuthorizationRequired
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
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
Configure this AuthzOps instance.- Parameters:
dlConfig- current DigilibConfiguration- Throws:
AuthOpException- Exception thrown on error
-