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

SeamSecurityManager (JBoss Seam API Documentation) - JBoss Seam 1.1.0 cr1 API 英文版文档


org.jboss.seam.security
Class SeamSecurityManager

java.lang.Object
  extended by org.jboss.seam.security.SeamSecurityManager

@Scope(value=APPLICATION)
@Name(value="org.jboss.seam.securityManager")
@Intercept(value=NEVER)
public class SeamSecurityManager
extends Object

Holds configuration settings and provides functionality for the security API

Author:
Shane Bryzak

Constructor Summary
SeamSecurityManager()
           
 
Method Summary
 void checkPermission(Object obj, String action)
           
 void checkPermission(String permissionName, String action)
           
 IdentityGenerator getIdentityGenerator()
           
 String getLoginAction()
           
 String getObjectIdentity(Object obj)
           
protected  PermissionHandler getPermissionHandler(Class cls)
           
 Permissions getPermissions(Object value)
           
 Permissions getPermissions(Object value, Authentication auth)
           
 String getSecurityErrorAction()
           
 void grantPermission(Object target, String action, String recipient, AclProvider.RecipientType recipientType)
           
static SeamSecurityManager instance()
           
 void revokePermission(Object target, String action, String recipient, AclProvider.RecipientType recipientType)
           
 void setIdentityGenerator(IdentityGenerator identityGenerator)
           
 void setLoginAction(String loginAction)
           
 void setSecurityErrorAction(String securityErrorAction)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeamSecurityManager

public SeamSecurityManager()
Method Detail

instance

public static SeamSecurityManager instance()

getLoginAction

public String getLoginAction()

setLoginAction

public void setLoginAction(String loginAction)

getSecurityErrorAction

public String getSecurityErrorAction()

getIdentityGenerator

public IdentityGenerator getIdentityGenerator()

setIdentityGenerator

public void setIdentityGenerator(IdentityGenerator identityGenerator)

setSecurityErrorAction

public void setSecurityErrorAction(String securityErrorAction)

checkPermission

public void checkPermission(String permissionName,
                            String action)

checkPermission

public void checkPermission(Object obj,
                            String action)

getPermissionHandler

protected PermissionHandler getPermissionHandler(Class cls)

getPermissions

public Permissions getPermissions(Object value)

getPermissions

public Permissions getPermissions(Object value,
                                  Authentication auth)

getObjectIdentity

public String getObjectIdentity(Object obj)

grantPermission

public void grantPermission(Object target,
                            String action,
                            String recipient,
                            AclProvider.RecipientType recipientType)

revokePermission

public void revokePermission(Object target,
                             String action,
                             String recipient,
                             AclProvider.RecipientType recipientType)