Package com.vaadin.flow.server.auth
Enum Class NavigationContext.Phase
- All Implemented Interfaces:
Serializable,Comparable<NavigationContext.Phase>,Constable
- Enclosing class:
NavigationContext
The reason why an access check is run.
- Since:
- 25.4
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe access of the current user to the target view is checked outside of a navigation, for example to populate the menu.The current user navigates to the target view.The target view is checked for anonymous access, to find out if the route is public. -
Method Summary
Modifier and TypeMethodDescriptionstatic NavigationContext.PhaseReturns the enum constant of this class with the specified name.static NavigationContext.Phase[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NAVIGATION
The current user navigates to the target view. -
EVALUATION
The access of the current user to the target view is checked outside of a navigation, for example to populate the menu. -
PUBLIC_ROUTE_CHECK
The target view is checked for anonymous access, to find out if the route is public. No user is involved: the principal isnulland no role is granted.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-