org.jboss.metadata
Class WebSecurityMetaData

java.lang.Object
  extended byorg.jboss.metadata.WebSecurityMetaData

public class WebSecurityMetaData
extends java.lang.Object

Encapsulation of the web.xml security-constraints


Nested Class Summary
static class WebSecurityMetaData.WebResourceCollection (src)
          The security-constraint/web-resource-collection child element container
 
Field Summary
static java.lang.String[] ALL_HTTP_METHOD_NAMES
           
static java.util.Set ALL_HTTP_METHODS
          The set of all http methods: DELETE, GET, HEAD, OPTIONS, POST, PUT, TRACE
 
Constructor Summary
WebSecurityMetaData()
           
 
Method Summary
 void addRole(java.lang.String name)
           
 WebSecurityMetaData.WebResourceCollection (src) addWebResource(java.lang.String name)
           
static java.lang.String[] getMissingHttpMethods(java.util.HashSet httpMethods)
           
 java.util.Set getRoles()
          Get the security-constraint/auth-constraint values.
 java.lang.String getTransportGuarantee()
          Get the security-constraint/transport-guarantee setting
 java.util.HashMap getWebResources()
           
 boolean isExcluded()
           
 boolean isUnchecked()
           
 void setExcluded(boolean flag)
           
 void setTransportGuarantee(java.lang.String transportGuarantee)
           
 void setUnchecked(boolean flag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

WebSecurityMetaData

public WebSecurityMetaData()
Method Detail

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)