jakarta.servlet.annotation.ServletSecurity used to configre security
constraints for a Servlet.
| Modifier and Type | Field and Description |
|---|---|
| private final Map |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ServletSecurityElement(HttpConstraintElement
The constraint httpConstraintElement)Use specified HttpConstraintElement. |
| public | ServletSecurityElement(Collection<HttpMethodConstraintElement>
Method constraints httpMethodConstraints)Use specific constraints for specified methods and default HttpConstraintElement for all other methods. |
| public | ServletSecurityElement(HttpConstraintElement
Default constraint httpConstraintElement, Collection<HttpMethodConstraintElement> Method constraints httpMethodConstraints)Use specified HttpConstraintElement as default and specific constraints for specified methods. |
| public | ServletSecurityElement(ServletSecurity
Annotation to use as the basis for the new instance annotation)Create from an annotation. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public Collection | Returns: The security constraints for specific methodsObtain the collection of security constraints configured for specific methods. |
| public Collection | Returns: The names of the HTTP methodsObtain the collection HTTP methods for which security constraints have been defined. |
| methodConstraints | back to summary |
|---|---|
| private final Map<String, HttpMethodConstraintElement> methodConstraints | |
| ServletSecurityElement | back to summary |
|---|---|
| public ServletSecurityElement() Use default HttpConstraint. | |
| ServletSecurityElement | back to summary |
|---|---|
| public ServletSecurityElement(HttpConstraintElement httpConstraintElement) Use specified HttpConstraintElement.
| |
| ServletSecurityElement | back to summary |
|---|---|
| public ServletSecurityElement(Collection<HttpMethodConstraintElement> httpMethodConstraints) Use specific constraints for specified methods and default HttpConstraintElement for all other methods.
| |
| ServletSecurityElement | back to summary |
|---|---|
| public ServletSecurityElement(HttpConstraintElement httpConstraintElement, Collection<HttpMethodConstraintElement> httpMethodConstraints) Use specified HttpConstraintElement as default and specific constraints for specified methods.
| |
| ServletSecurityElement | back to summary |
|---|---|
| public ServletSecurityElement(ServletSecurity annotation) Create from an annotation.
| |
| addHttpMethodConstraints | back to summary |
|---|---|
| private void addHttpMethodConstraints(Collection<HttpMethodConstraintElement> httpMethodConstraints) | |
| getHttpMethodConstraints | back to summary |
|---|---|
| public Collection Obtain the collection of security constraints configured for specific methods.
| |
| getMethodNames | back to summary |
|---|---|
| public Collection Obtain the collection HTTP methods for which security constraints have been defined.
| |