public abstract class AbstractEJBAuthorizationHelper extends AbstractJavaEEHelper
| Modifier and Type | Field and Description |
|---|---|
protected String |
version |
policyRegistration, securityContext| Constructor and Description |
|---|
AbstractEJBAuthorizationHelper() |
| Modifier and Type | Method and Description |
|---|---|
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
|
audit, authorizationAudit, getCallerPrincipal, getContextMap, getPolicyRegistration, getSecurityContext, setPolicyRegistration, setSecurityContextprotected String version
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 nullIllegalArgumentException - 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 nullIllegalArgumentException - 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 nullIllegalArgumentException - roleName, ejbName, contextID is nullCopyright © 2013 JBoss Inc.. All Rights Reserved.