Class EJBPolicyModuleDelegate
- java.lang.Object
-
- org.jboss.security.authorization.modules.AuthorizationModuleDelegate
-
- 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$
- Author:
- Anil Saldhana
-
-
Field Summary
Fields Modifier and Type Field Description protected RunAs
callerRunAs
protected Method
ejbMethod
protected String
ejbName
protected Principal
ejbPrincipal
protected boolean
ejbRestrictions
protected String
roleName
protected Set<SecurityRoleRef>
securityRoleReferences
-
Fields inherited from class org.jboss.security.authorization.modules.AuthorizationModuleDelegate
policyRegistration
-
-
Constructor Summary
Constructors Constructor Description EJBPolicyModuleDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
authorize(Resource resource, Subject callerSubject, RoleGroup role)
protected int
checkRoleRef(RoleGroup principalRole)
-
Methods inherited from class org.jboss.security.authorization.modules.AuthorizationModuleDelegate
setPolicyRegistrationManager
-
-
-
-
Field Detail
-
ejbName
protected String ejbName
-
ejbMethod
protected Method ejbMethod
-
ejbPrincipal
protected Principal ejbPrincipal
-
callerRunAs
protected RunAs callerRunAs
-
roleName
protected String roleName
-
securityRoleReferences
protected Set<SecurityRoleRef> securityRoleReferences
-
ejbRestrictions
protected boolean ejbRestrictions
-
-
Method Detail
-
authorize
public int authorize(Resource resource, Subject callerSubject, RoleGroup role)
- Specified by:
authorize
in classAuthorizationModuleDelegate
callerSubject
- Authenticated Subjectrole
- RoleGroup- Returns:
- See Also:
AuthorizationModuleDelegate.authorize(org.jboss.security.authorization.Resource, javax.security.auth.Subject, org.jboss.security.identity.RoleGroup)
-
checkRoleRef
protected int checkRoleRef(RoleGroup principalRole)
-
-