org.jboss.security.plugins.javaee
Class EJBAuthorizationHelper

java.lang.Object
  extended by org.jboss.security.javaee.AbstractJavaEEHelper
      extended by org.jboss.security.javaee.AbstractEJBAuthorizationHelper
          extended by org.jboss.security.plugins.javaee.EJBAuthorizationHelper

public class EJBAuthorizationHelper
extends org.jboss.security.javaee.AbstractEJBAuthorizationHelper

Default implementation of the EJBAuthorizationHelper

Since:
Apr 18, 2008
Version:
$Revision$
Author:
Anil.Saldhana@redhat.com

Field Summary
protected static org.jboss.logging.Logger log
           
 
Fields inherited from class org.jboss.security.javaee.AbstractEJBAuthorizationHelper
version
 
Fields inherited from class org.jboss.security.javaee.AbstractJavaEEHelper
policyRegistration, securityContext
 
Constructor Summary
EJBAuthorizationHelper()
           
 
Method Summary
 boolean authorize(String ejbName, Method ejbMethod, Principal ejbPrincipal, String invocationInterfaceString, CodeSource ejbCS, Subject callerSubject, org.jboss.security.RunAs callerRunAs, String contextID, org.jboss.security.identity.RoleGroup methodRoles)
           
 String getEJBVersion()
           
 boolean isCallerInRole(String roleName, String ejbName, Principal ejbPrincipal, Subject callerSubject, String contextID, Set<org.jboss.security.javaee.SecurityRoleRef> securityRoleRefs)
           
 boolean isCallerInRole(String roleName, String ejbName, Principal ejbPrincipal, Subject callerSubject, String contextID, Set<org.jboss.security.javaee.SecurityRoleRef> securityRoleRefs, boolean enforceEJBRestrictions)
           
 void setEJBVersion(String ejbVersion)
           
 
Methods inherited from class org.jboss.security.javaee.AbstractJavaEEHelper
audit, authorizationAudit, getCallerPrincipal, getContextMap, getPolicyRegistration, getSecurityContext, setPolicyRegistration, setSecurityContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.jboss.logging.Logger log
Constructor Detail

EJBAuthorizationHelper

public EJBAuthorizationHelper()
Method Detail

authorize

public boolean authorize(String ejbName,
                         Method ejbMethod,
                         Principal ejbPrincipal,
                         String invocationInterfaceString,
                         CodeSource ejbCS,
                         Subject callerSubject,
                         org.jboss.security.RunAs callerRunAs,
                         String contextID,
                         org.jboss.security.identity.RoleGroup methodRoles)
Specified by:
authorize in class org.jboss.security.javaee.AbstractEJBAuthorizationHelper

isCallerInRole

public boolean isCallerInRole(String roleName,
                              String ejbName,
                              Principal ejbPrincipal,
                              Subject callerSubject,
                              String contextID,
                              Set<org.jboss.security.javaee.SecurityRoleRef> securityRoleRefs)
Specified by:
isCallerInRole in class org.jboss.security.javaee.AbstractEJBAuthorizationHelper

isCallerInRole

public boolean isCallerInRole(String roleName,
                              String ejbName,
                              Principal ejbPrincipal,
                              Subject callerSubject,
                              String contextID,
                              Set<org.jboss.security.javaee.SecurityRoleRef> securityRoleRefs,
                              boolean enforceEJBRestrictions)
Specified by:
isCallerInRole in class org.jboss.security.javaee.AbstractEJBAuthorizationHelper

getEJBVersion

public String getEJBVersion()
Specified by:
getEJBVersion in class org.jboss.security.javaee.AbstractEJBAuthorizationHelper

setEJBVersion

public void setEJBVersion(String ejbVersion)
Specified by:
setEJBVersion in class org.jboss.security.javaee.AbstractEJBAuthorizationHelper


Copyright © 2009 JBoss Inc.. All Rights Reserved.