jakarta.servlet.Servlet implementation class to enforce security constraints on
HTTP protocol requests.| Modifier and Type | Class and Description |
|---|---|
| public static enum | ServletSecurity.
Represents the two possible values of the empty role semantic, active when a list of role names is empty. |
| public static enum | ServletSecurity.
Represents the two possible values of data transport, encrypted or not. |
| Modifier and Type | Method and Description |
|---|---|
| public HttpMethodConstraint[] | Returns: array of http method constraintAn array of HttpMethodConstraint objects to which the security constraint will be applied |
| public HttpConstraint | Returns: http constraintThe default constraint to apply to requests not handled by specific method constraints |
| httpMethodConstraints | back to summary |
|---|---|
| public HttpMethodConstraint[] httpMethodConstraints() An array of HttpMethodConstraint objects to which the security constraint will be applied
| |
| value | back to summary |
|---|---|
| public HttpConstraint value() The default constraint to apply to requests not handled by specific method constraints
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final ServletSecurity. | DENY
Access MUST be denied, regardless of authentication state or identity |
| public static final ServletSecurity. | PERMIT
Access MUST be permitted, regardless of authentication state or identity |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ServletSecurity. | |
| public static ServletSecurity. |
| DENY | back to summary |
|---|---|
| public static final ServletSecurity. Access MUST be denied, regardless of authentication state or identity | |
| PERMIT | back to summary |
|---|---|
| public static final ServletSecurity. Access MUST be permitted, regardless of authentication state or identity | |
| EmptyRoleSemantic | back to summary |
|---|---|
| private EmptyRoleSemantic() | |
| valueOf | back to summary |
|---|---|
| public static ServletSecurity. | |
| values | back to summary |
|---|---|
| public static ServletSecurity. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ServletSecurity. | CONFIDENTIAL
The container MUST encrypt user data during transport |
| public static final ServletSecurity. | NONE
User data must not be encrypted by the container during transport |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ServletSecurity. | |
| public static ServletSecurity. |
| CONFIDENTIAL | back to summary |
|---|---|
| public static final ServletSecurity. The container MUST encrypt user data during transport | |
| NONE | back to summary |
|---|---|
| public static final ServletSecurity. User data must not be encrypted by the container during transport | |
| TransportGuarantee | back to summary |
|---|---|
| private TransportGuarantee() | |
| valueOf | back to summary |
|---|---|
| public static ServletSecurity. | |
| values | back to summary |
|---|---|
| public static ServletSecurity. | |