org.jboss.security.authorization.modules.ejb
Class EJBPolicyModuleDelegate

java.lang.Object
  extended by org.jboss.security.authorization.modules.AuthorizationModuleDelegate
      extended by org.jboss.security.authorization.modules.ejb.EJBPolicyModuleDelegate
Direct Known Subclasses:
EJBXACMLPolicyModuleDelegate

public class EJBPolicyModuleDelegate
extends AuthorizationModuleDelegate

Authorization Module delegate that deals with the authorization decisions for the EJB Layer (Default Behavior)

Since:
Jul 6, 2006
Version:
$Revision: 86122 $
Author:
Anil Saldhana

Field Summary
protected  org.jboss.security.RunAs callerRunAs
           
protected  Method ejbMethod
           
protected  String ejbName
           
protected  Principal ejbPrincipal
           
protected  boolean ejbRestrictions
           
protected  String roleName
           
protected  Set<org.jboss.security.javaee.SecurityRoleRef> securityRoleReferences
           
 
Fields inherited from class org.jboss.security.authorization.modules.AuthorizationModuleDelegate
log, policyRegistration, trace
 
Constructor Summary
EJBPolicyModuleDelegate()
           
 
Method Summary
 int authorize(org.jboss.security.authorization.Resource resource, Subject callerSubject, org.jboss.security.identity.RoleGroup role)
           
protected  int checkRoleRef(org.jboss.security.identity.RoleGroup principalRole)
           
 
Methods inherited from class org.jboss.security.authorization.modules.AuthorizationModuleDelegate
setPolicyRegistrationManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ejbName

protected String ejbName

ejbMethod

protected Method ejbMethod

ejbPrincipal

protected Principal ejbPrincipal

callerRunAs

protected org.jboss.security.RunAs callerRunAs

roleName

protected String roleName

securityRoleReferences

protected Set<org.jboss.security.javaee.SecurityRoleRef> securityRoleReferences

ejbRestrictions

protected boolean ejbRestrictions
Constructor Detail

EJBPolicyModuleDelegate

public EJBPolicyModuleDelegate()
Method Detail

authorize

public int authorize(org.jboss.security.authorization.Resource resource,
                     Subject callerSubject,
                     org.jboss.security.identity.RoleGroup role)
Specified by:
authorize in class AuthorizationModuleDelegate
callerSubject - Authenticated Subject
role - RoleGroup
Returns:
See Also:
AuthorizationModuleDelegate#authorize(Resource)

checkRoleRef

protected int checkRoleRef(org.jboss.security.identity.RoleGroup principalRole)


Copyright © 2009 JBoss Inc.. All Rights Reserved.