Package com.vaadin.flow.server.auth
Class RoutePathAccessChecker
java.lang.Object
com.vaadin.flow.server.auth.RoutePathAccessChecker
- All Implemented Interfaces:
NavigationAccessChecker,Serializable
Checks if a user has access to a given route path.
The check is performed by a pluggable AccessPathChecker on the actual
event location path, without considering if it is the route main path or an
alias. Therefore, the provided AccessPathChecker should be configured
to handle both route main paths and aliases.
An instance of this class should be provided to a
NavigationAccessControl added as a
BeforeEnterListener to the
UI of interest.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRoutePathAccessChecker(AccessPathChecker accessPathChecker) Creates an instance for the given checker. -
Method Summary
Modifier and TypeMethodDescriptioncheck(NavigationContext context) Checks if the current user is allowed to access a target view.
-
Constructor Details
-
RoutePathAccessChecker
Creates an instance for the given checker.- Parameters:
accessPathChecker- the access path checker to use
-
-
Method Details