|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.security.javaee.AbstractJavaEEHelper
org.jboss.security.javaee.AbstractEJBAuthorizationHelper
public abstract class AbstractEJBAuthorizationHelper
EJB Authorization Helper
Field Summary | |
---|---|
protected String |
version
|
Fields inherited from class org.jboss.security.javaee.AbstractJavaEEHelper |
---|
policyRegistration, securityContext |
Constructor Summary | |
---|---|
AbstractEJBAuthorizationHelper()
|
Method Summary | |
---|---|
abstract boolean |
authorize(String ejbName,
Method ejbMethod,
Principal ejbPrincipal,
String invocationInterfaceString,
CodeSource ejbCS,
Subject callerSubject,
RunAs callerRunAs,
String contextID,
RoleGroup methodRoles)
Authorize the EJB Invocation |
abstract String |
getEJBVersion()
Get the EJB Version |
abstract boolean |
isCallerInRole(String roleName,
String ejbName,
Principal ejbPrincipal,
Subject callerSubject,
String contextID,
Set<SecurityRoleRef> securityRoleRefs)
Check if the caller is in any of the roles |
abstract boolean |
isCallerInRole(String roleName,
String ejbName,
Principal ejbPrincipal,
Subject callerSubject,
String contextID,
Set<SecurityRoleRef> securityRoleRefs,
boolean enforceEJBRestrictions)
Enforce EJB 1.1 restrictions that the role being checked has to be in the deployment descriptor |
abstract void |
setEJBVersion(String ejbVersion)
Set the EJB Version |
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 |
---|
protected String version
Constructor Detail |
---|
public AbstractEJBAuthorizationHelper()
Method Detail |
---|
public abstract String getEJBVersion()
public abstract void setEJBVersion(String ejbVersion)
ejbVersion
- public abstract boolean authorize(String ejbName, Method ejbMethod, Principal ejbPrincipal, String invocationInterfaceString, CodeSource ejbCS, Subject callerSubject, RunAs callerRunAs, String contextID, RoleGroup methodRoles)
ejbName
- ejbMethod
- ejbPrincipal
- invocationInterfaceString
- ejbCS
- callerSubject
- callerRunAs
- contextID
- methodRoles
-
IllegalStateException
- Authorization Manager from SecurityContext is null
IllegalArgumentException
- ejbName, ejbMethod, ejbCS, contextID is nullpublic abstract boolean isCallerInRole(String roleName, String ejbName, Principal ejbPrincipal, Subject callerSubject, String contextID, Set<SecurityRoleRef> securityRoleRefs)
roleName
- ejbName
- ejbPrincipal
- callerSubject
- contextID
- securityRoleRefs
-
IllegalStateException
- Authorization Manager from SecurityContext is null
IllegalArgumentException
- roleName, ejbName, contextID is nullpublic abstract boolean isCallerInRole(String roleName, String ejbName, Principal ejbPrincipal, Subject callerSubject, String contextID, Set<SecurityRoleRef> securityRoleRefs, boolean enforceEJBRestrictions)
roleName
- ejbName
- ejbPrincipal
- callerSubject
- contextID
- securityRoleRefs
- enforceEJBRestrictions
-
IllegalStateException
- Authorization Manager from SecurityContext is null
IllegalArgumentException
- roleName, ejbName, contextID is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |