public interface SecurityConstraintMapping extends ContextRelated
Single constraint mapping to be used by SecurityConfigurationMapping. It represents single
<security-constraint> element from web.xml.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
SecurityConstraintMapping.WebResourceCollectionMapping
A representation of single
<security-constraint>/<web-resource-collection> |
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
getAuthRoles()
Returns a collection of
<security-constraint>/<auth-constraint>/<role-name> |
String |
getName()
Returns
<security-constraint>/<display-name> |
default javax.servlet.annotation.ServletSecurity.TransportGuarantee |
getTransportGuarantee()
Returns
<security-constraint>/<user-data-constraint>/<transport-guarantee>. |
Collection<SecurityConstraintMapping.WebResourceCollectionMapping> |
getWebResourceCollections()
Returns a collection of
<security-constraint>/<web-resource-collection> information. |
default boolean |
isAuthRolesSet()
When returning
true, it means that empty roles collection mean "deny all authentication attempts". |
getContextId, getContextSelectFilterString getName()
<security-constraint>/<display-name>Collection<SecurityConstraintMapping.WebResourceCollectionMapping> getWebResourceCollections()
<security-constraint>/<web-resource-collection> information.Collection<String> getAuthRoles()
<security-constraint>/<auth-constraint>/<role-name>default boolean isAuthRolesSet()
true, it means that empty roles collection mean "deny all authentication attempts".
false means that authentication is successful despite the associated user roles. Effectively this flag
disctinguishes between empty roles set (true) and no roles set at all (false).default javax.servlet.annotation.ServletSecurity.TransportGuarantee getTransportGuarantee()
<security-constraint>/<user-data-constraint>/<transport-guarantee>.Copyright © 2006–2024 OPS4J - Open Participation Software for Java. All rights reserved.