org.jboss.metadata
Class WebSecurityMetaData
java.lang.Object
org.jboss.metadata.WebSecurityMetaData
- public class WebSecurityMetaData
- extends java.lang.Object
Encapsulation of the web.xml security-constraints
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALL_HTTP_METHODS
public static final java.util.Set ALL_HTTP_METHODS
- The set of all http methods: DELETE, GET, HEAD, OPTIONS, POST, PUT, TRACE
ALL_HTTP_METHOD_NAMES
public static final java.lang.String[] ALL_HTTP_METHOD_NAMES
WebSecurityMetaData
public WebSecurityMetaData()
getMissingHttpMethods
public static java.lang.String[] getMissingHttpMethods(java.util.HashSet httpMethods)
addWebResource
public WebSecurityMetaData.WebResourceCollection (src) addWebResource(java.lang.String name)
getWebResources
public java.util.HashMap getWebResources()
addRole
public void addRole(java.lang.String name)
getRoles
public java.util.Set getRoles()
- Get the security-constraint/auth-constraint values. An empty role
set must be qualified by the isUnchecked and isExcluded methods.
- Returns:
- Set for the role names
getTransportGuarantee
public java.lang.String getTransportGuarantee()
- Get the security-constraint/transport-guarantee setting
- Returns:
- null == no guarantees
INTEGRAL == an integretity guarantee
CONFIDENTIAL == protected for confidentiality
setTransportGuarantee
public void setTransportGuarantee(java.lang.String transportGuarantee)
isUnchecked
public boolean isUnchecked()
setUnchecked
public void setUnchecked(boolean flag)
isExcluded
public boolean isExcluded()
setExcluded
public void setExcluded(boolean flag)