Annotation Type SecuredAccess
@Target({TYPE,METHOD,ANNOTATION_TYPE})
@Retention(RUNTIME)
@Documented
public @interface SecuredAccess
This annotation is used to secure routes and endpoints. It can also be used as meta-annotation to
create reusable access rule annotations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe default class used when no evaluator has been set. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanReturns whether theparent layout chainshould also be checked for access.Class<? extends AccessEvaluator>Aprogrammatic evaluatorto control access.A Spring Security expression to control access. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default string used when no expression has been set.
-
Field Details
-
EXPRESSION_NOT_SET
The default string used when no expression has been set.- See Also:
-
-
Element Details
-
value
String valueA Spring Security expression to control access.If both an expression and an evaluator are set, both must be satisfied to grant access.
- Returns:
- a Spring Security expression
- See Also:
- Default:
- "___NOT_SET___"
-
evaluator
Class<? extends AccessEvaluator> evaluatorAprogrammatic evaluatorto control access.If both an expression and an evaluator are set, both must be satisfied to grant access.
- Returns:
- a
AccessEvaluator
- Default:
- de.codecamp.vaadin.security.spring.access.SecuredAccess.NotSetAccessEvaluator.class
-
checkLayout
boolean checkLayoutReturns whether theparent layout chainshould also be checked for access. Naturally, this is only applicable for routes and not endpoints.- Returns:
- whether the
parent layout chainshould also be checked for access (where applicable)
- Default:
- true
-