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

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


org.jboss.seam.security.config
Class SecurityConfiguration

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

@Startup
@Scope(value=APPLICATION)
@Name(value="org.jboss.seam.security.securityConfiguration")
@Install(value=false,
         precedence=0,
         dependencies="org.jboss.seam.securityManager")
@Intercept(value=NEVER)
public class SecurityConfiguration
extends Object

Security configuration component.

Author:
Shane Bryzak

Nested Class Summary
 class SecurityConfiguration.Role
           
 
Field Summary
static String DEFAULT_LOGIN_MODULE_NAME
           
 
Constructor Summary
SecurityConfiguration()
           
 
Method Summary
 Configuration getLoginModuleConfiguration()
          Returns the login module configuration
 Set<SecurityConstraint> getSecurityConstraints()
          Returns the configured security constraints
 String getSecurityErrorPage()
           
 SecurityConfiguration.Role getSecurityRole(String name)
           
 void init()
          Initialization
static SecurityConfiguration instance()
           
protected  void loadConfigFromStream(InputStream config)
          Loads the security configuration from the specified InputStream.
protected  void loadLoginModules(List<org.dom4j.Element> policies)
           
protected  void loadSecurityConstraints(List elements)
          Load security constraints
protected  void loadSecurityRoles(org.dom4j.Element securityRoleElement)
          Load the security roles
 void setSecurityErrorPage(String securityErrorPage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LOGIN_MODULE_NAME

public static final String DEFAULT_LOGIN_MODULE_NAME
See Also:
Constant Field Values
Constructor Detail

SecurityConfiguration

public SecurityConfiguration()
Method Detail

init

@Create
public void init()
          throws SecurityConfigException
Initialization

Throws:
SecurityConfigException

instance

public static SecurityConfiguration instance()

setSecurityErrorPage

public void setSecurityErrorPage(String securityErrorPage)

getSecurityErrorPage

public String getSecurityErrorPage()

getSecurityRole

public SecurityConfiguration.Role getSecurityRole(String name)

loadConfigFromStream

protected void loadConfigFromStream(InputStream config)
                             throws SecurityConfigException
Loads the security configuration from the specified InputStream.

Parameters:
config - InputStream
Throws:
SecurityConfigException

getSecurityConstraints

public Set<SecurityConstraint> getSecurityConstraints()
Returns the configured security constraints

Returns:
Set

getLoginModuleConfiguration

public Configuration getLoginModuleConfiguration()
Returns the login module configuration


loadSecurityConstraints

protected void loadSecurityConstraints(List elements)
                                throws SecurityConfigException
Load security constraints

Parameters:
elements - List
Throws:
SecurityConfigException

loadSecurityRoles

protected void loadSecurityRoles(org.dom4j.Element securityRoleElement)
                          throws SecurityConfigException
Load the security roles

Parameters:
securityRoleElement - Element
Throws:
SecurityConfigException

loadLoginModules

protected void loadLoginModules(List<org.dom4j.Element> policies)
                         throws SecurityConfigException
Throws:
SecurityConfigException