- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface AccessManager
The access manager is a way of implementing per-endpoint security management.
It's only enabled for endpoints if a list of roles is provided.
Ex: get("/secured", SecuredController::get, roles(LOGGED_IN));
- See Also:
Role
,
Javalin.addHandler(HandlerType, String, Handler, Set)
,
Access manager in docs