Class AccessController
java.lang.Object
org.opends.server.authorization.policy.AccessController
Enforces access controls for a single request and its responses.
-
Method Summary
Modifier and TypeMethodDescriptioncheckRequest
(RequestContext context, Request request) Checks whether the provided request is allowed or not.filterResponse
(Response response) Checks a response:
-
Method Details
-
checkRequest
Checks whether the provided request is allowed or not.- Parameters:
context
- The request context.request
- The request.- Returns:
- The possibly transformed request.
- Throws:
LdapException
- If the request is not allowed.
-
filterResponse
Checks a response:1) don't return search entries for which the user does not have read access 2) remove disallowed attributes from search result entries and pre/post read controls.
- Parameters:
response
- The response message.- Returns:
- The filtered response which may be transformed in some way or
null
if it should not be returned.
-