Package javax.servlet.annotation
Annotation Type ServletSecurity
Declare this annotation on a
The container applies constraints to the URL patterns mapped to each Servlet which declares this annotation.
Servlet
implementation class to enforce security constraints on
HTTP protocol requests.The container applies constraints to the URL patterns mapped to each Servlet which declares this annotation.
- Since:
- Servlet 3.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Represents the two possible values of the empty role semantic, active when a list of role names is empty.static enum
Represents the two possible values of data transport, encrypted or not. -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionAn array of HttpMethodConstraint objects to which the security constraint will be appliedThe default constraint to apply to requests not handled by specific method constraints
-
Element Details
-
value
HttpConstraint valueThe default constraint to apply to requests not handled by specific method constraints- Returns:
- http constraint
- Default:
- @javax.servlet.annotation.HttpConstraint
-
httpMethodConstraints
HttpMethodConstraint[] httpMethodConstraintsAn array of HttpMethodConstraint objects to which the security constraint will be applied- Returns:
- array of http method constraint
- Default:
- {}
-