public class EJBAuthorizationHelper extends AbstractEJBAuthorizationHelper
| Modifier and Type | Field and Description |
|---|---|
protected String |
POLICY_REGISTRATION_JNDI |
versionpolicyRegistration, securityContext| Constructor and Description |
|---|
EJBAuthorizationHelper() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authorize(Resource resource)
Authorize the EJB
|
boolean |
authorize(String ejbName,
Method ejbMethod,
Principal ejbPrincipal,
String invocationInterfaceString,
CodeSource ejbCodeSource,
Subject callerSubject,
RunAs callerRunAs,
String contextID,
RoleGroup methodRoles)
Authorize the EJB Invocation
|
String |
getEJBVersion()
Get the EJB Version
|
boolean |
isCallerInRole(Resource resource,
String roleName)
Check if the caller is in any of the roles
|
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
|
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
|
void |
setEJBVersion(String ejbVersion)
Set the EJB Version
|
audit, authenticationAudit, authorizationAudit, getCallerPrincipal, getContextMap, getPolicyRegistration, getSecurityContext, setPolicyRegistration, setSecurityContextprotected String POLICY_REGISTRATION_JNDI
public boolean authorize(String ejbName, Method ejbMethod, Principal ejbPrincipal, String invocationInterfaceString, CodeSource ejbCodeSource, Subject callerSubject, RunAs callerRunAs, String contextID, RoleGroup methodRoles)
AbstractEJBAuthorizationHelperauthorize in class AbstractEJBAuthorizationHelperAbstractEJBAuthorizationHelper.authorize(Resource)public boolean isCallerInRole(String roleName, String ejbName, Principal ejbPrincipal, Subject callerSubject, String contextID, Set<SecurityRoleRef> securityRoleRefs)
AbstractEJBAuthorizationHelperisCallerInRole in class AbstractEJBAuthorizationHelperAbstractEJBAuthorizationHelper.isCallerInRole(Resource, String)public boolean isCallerInRole(Resource resource, String roleName) throws WrongEEResourceException, MissingArgumentsException
AbstractEJBAuthorizationHelperisCallerInRole in class AbstractEJBAuthorizationHelperWrongEEResourceException - when resource is not EJB ResourceMissingArgumentsException - roleName, ejbName or contextID is nullpublic boolean isCallerInRole(String roleName, String ejbName, Principal ejbPrincipal, Subject callerSubject, String contextID, Set<SecurityRoleRef> securityRoleRefs, boolean enforceEJBRestrictions)
AbstractEJBAuthorizationHelperisCallerInRole in class AbstractEJBAuthorizationHelperAbstractEJBAuthorizationHelper.isCallerInRole(Resource, String)public String getEJBVersion()
AbstractEJBAuthorizationHelpergetEJBVersion in class AbstractEJBAuthorizationHelperpublic void setEJBVersion(String ejbVersion)
AbstractEJBAuthorizationHelpersetEJBVersion in class AbstractEJBAuthorizationHelperpublic boolean authorize(Resource resource) throws WrongEEResourceException, MissingArgumentsException
AbstractEJBAuthorizationHelperauthorize in class AbstractEJBAuthorizationHelperWrongEEResourceExceptionMissingArgumentsExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.