-
Optional Element Summary
Optional Elements
The description of this constraint (which can be displayed to users to help explain why they have been denied access)
The id of this authentication constraint; designed to allow configuration to override the constraints in the annotation
A list of roles, one of which the user must have.
boolean
If true, authentication will not be enforced on calls made to the annotation target
-
-
Field Details
-
DEFAULT_ID
static final String DEFAULT_ID
- See Also:
-
-
Element Details
-
id
The id of this authentication constraint; designed to allow configuration to override the constraints in the annotation
- Returns:
- Default:
- "default"
-
skip
boolean skip
If true, authentication will not be enforced on calls made to the annotation target
- Returns:
- Default:
- false
-
role
A list of roles, one of which the user must have. Defaults to "user". If the user does not hold this role then an authentication exception will be raised
- Returns:
- Default:
- {"user"}
-