HttpConstraint annotation value.
| Modifier and Type | Field and Description |
|---|---|
| private ServletSecurity. | |
| private String[] | |
| private ServletSecurity. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | HttpConstraintElement(ServletSecurity.
should be EmptyRoleSemantic.DENY semanticConvenience constructor to establish EmptyRoleSemantic.DENY |
| public | HttpConstraintElement(ServletSecurity.
TransportGuarantee.NONE or
TransportGuarantee.CONFIDENTIAL guarantee,the names of the roles that are to be
allowed access roleNames)Constructor to establish non-empty getRolesAllowed and/or TransportGuarantee.CONFIDENTIAL. |
| public | HttpConstraintElement(ServletSecurity.
EmptyRoleSemantic.DENY or
EmptyRoleSemantic.PERMIT semantic,TransportGuarantee.NONE or
TransportGuarantee.CONFIDENTIAL guarantee,the names of the roles that are to be allowed
access, or missing if the semantic is EmptyRoleSemantic.DENY roleNames)Constructor to establish all of getEmptyRoleSemantic, getRolesAllowed, and getTransportGuarantee. |
| Modifier and Type | Method and Description |
|---|---|
| private String[] | |
| public ServletSecurity. | Returns: theEmptyRoleSemantic to be applied when
getRolesAllowed returns an empty (that is, zero-length)
arrayGets the default authorization semantic. |
| public String[] | Returns: a (possibly empty) array of role names. When the array is empty, its meaning depends on the value ofgetEmptyRoleSemantic. If its value is DENY,
and getRolesAllowed returns an empty array,
access is to be denied independent of authentication state and
identity. Conversely, if its value is PERMIT, it
indicates that access is to be allowed independent of authentication
state and identity. When the array contains the names of one or
more roles, it indicates that access is contingent on membership in at
least one of the named roles (independent of the value of
getEmptyRoleSemantic).Gets the names of the authorized roles. |
| public ServletSecurity. | Returns: theTransportGuarantee indicating the data
protection that must be provided by the connectionGets the data protection requirement (i.e., whether or not SSL/TLS is required) that must be satisfied by the transport connection. |
| emptyRoleSemantic | back to summary |
|---|---|
| private ServletSecurity. | |
| rolesAllowed | back to summary |
|---|---|
| private String[] rolesAllowed | |
| transportGuarantee | back to summary |
|---|---|
| private ServletSecurity. | |
| HttpConstraintElement | back to summary |
|---|---|
| public HttpConstraintElement() Constructs a default HTTP constraint element | |
| HttpConstraintElement | back to summary |
|---|---|
| public HttpConstraintElement(ServletSecurity. Convenience constructor to establish EmptyRoleSemantic.DENY
| |
| HttpConstraintElement | back to summary |
|---|---|
| public HttpConstraintElement(ServletSecurity. Constructor to establish non-empty getRolesAllowed and/or TransportGuarantee.CONFIDENTIAL.
| |
| HttpConstraintElement | back to summary |
|---|---|
| public HttpConstraintElement(ServletSecurity. Constructor to establish all of getEmptyRoleSemantic, getRolesAllowed, and getTransportGuarantee.
| |
| copyStrings | back to summary |
|---|---|
| private String[] copyStrings(String[] strings) | |
| getEmptyRoleSemantic | back to summary |
|---|---|
| public ServletSecurity. Gets the default authorization semantic. This value is insignificant when
| |
| getRolesAllowed | back to summary |
|---|---|
| public String[] getRolesAllowed() Gets the names of the authorized roles. Duplicate role names appearing in getRolesAllowed are insignificant and may be discarded. The String "*" has no special meaning as a role name (should it occur in getRolesAllowed).
| |
| getTransportGuarantee | back to summary |
|---|---|
| public ServletSecurity. Gets the data protection requirement (i.e., whether or not SSL/TLS is required) that must be satisfied by the transport connection.
| |