org.jboss.metadata
Class WebSecurityMetaData

java.lang.Object
  extended by org.jboss.metadata.WebSecurityMetaData

public class WebSecurityMetaData
extends Object

Encapsulation of the web.xml security-constraints

Version:
$Revison:$
Author:
Scott.Stark@jboss.org

Nested Class Summary
static class WebSecurityMetaData.WebResourceCollection
          The security-constraint/web-resource-collection child element container
 
Field Summary
static String[] ALL_HTTP_METHOD_NAMES
           
static Set ALL_HTTP_METHODS
          The set of all http methods: DELETE, GET, HEAD, OPTIONS, POST, PUT, TRACE
 
Constructor Summary
WebSecurityMetaData()
           
 
Method Summary
 void addRole(String name)
           
 WebSecurityMetaData.WebResourceCollection addWebResource(String name)
           
static String[] getMissingHttpMethods(HashSet httpMethods)
           
 Set getRoles()
          Get the security-constraint/auth-constraint values.
 String getTransportGuarantee()
          Get the security-constraint/transport-guarantee setting
 HashMap getWebResources()
           
 boolean isExcluded()
           
 boolean isUnchecked()
           
 void setExcluded(boolean flag)
           
 void setTransportGuarantee(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 Set ALL_HTTP_METHODS
The set of all http methods: DELETE, GET, HEAD, OPTIONS, POST, PUT, TRACE


ALL_HTTP_METHOD_NAMES

public static final String[] ALL_HTTP_METHOD_NAMES
Constructor Detail

WebSecurityMetaData

public WebSecurityMetaData()
Method Detail

getMissingHttpMethods

public static String[] getMissingHttpMethods(HashSet httpMethods)

addWebResource

public WebSecurityMetaData.WebResourceCollection addWebResource(String name)

getWebResources

public HashMap getWebResources()

addRole

public void addRole(String name)

getRoles

public 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 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(String transportGuarantee)

isUnchecked

public boolean isUnchecked()

setUnchecked

public void setUnchecked(boolean flag)

isExcluded

public boolean isExcluded()

setExcluded

public void setExcluded(boolean flag)


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.