- All Implemented Interfaces:
A route with an access level of 25 is not accessible by other roles with the same access level. To share a single route with multiple roles with the same access level assign multiple roles to a route.
A role with a higher access level may execute any route protected by a role with a weaker access level.
useDescription copied from interface:
AuthorizationHandlerAdds a new route to the handler.
getpublic RequestHandler<T> get(String route, RoleType role) throws AuthorizationRequiredException, HandlerMissingExceptionDescription copied from interface:
AuthorizationHandlerRetrieves the RequestHandler of a route matching the route id and that any of the given roles have permission to.
- Specified by:
route- the id of the route to retrieve
role- the role used in the authorization check
- a request handler used for the route.
AuthorizationRequiredException- when a route exists but none of the given roles has permission to execute it.
HandlerMissingException- when the requested route is missing.
containspublic boolean contains(String route)