站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.1.1 API 英文版文档

SecurityConstraint (JBoss Seam API Documentation) - JBoss Seam 1.1.1 API 英文版文档


org.jboss.seam.security.config
Class SecurityConstraint

java.lang.Object
  extended by org.jboss.seam.security.config.SecurityConstraint

public class SecurityConstraint
extends Object

Represents the <security-constraint> element from the security configuration file.

Author:
Shane Bryzak

Constructor Summary
SecurityConstraint()
           
 
Method Summary
 AuthConstraint getAuthConstraint()
           
 Set<WebResourceCollection> getResourceCollections()
           
 boolean included(String uri, String method)
          Check if the specified URI and method are included in this security constraint.
 void setAuthConstraint(AuthConstraint authConstraint)
           
 void setResourceCollections(Set<WebResourceCollection> resourceCollections)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityConstraint

public SecurityConstraint()
Method Detail

getResourceCollections

public Set<WebResourceCollection> getResourceCollections()

setResourceCollections

public void setResourceCollections(Set<WebResourceCollection> resourceCollections)

getAuthConstraint

public AuthConstraint getAuthConstraint()

setAuthConstraint

public void setAuthConstraint(AuthConstraint authConstraint)

included

public boolean included(String uri,
                        String method)
Check if the specified URI and method are included in this security constraint.

Parameters:
uri - String The URI to check
method - String The method to check
Returns:
boolean True if the URI and method match one of the patterns contained within this security constraint, false otherwise.