public class EJBAuthorizationHelper extends AbstractEJBAuthorizationHelper
Modifier and Type | Field and Description |
---|---|
protected String |
POLICY_REGISTRATION_JNDI |
version
policyRegistration, 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, setSecurityContext
protected 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)
AbstractEJBAuthorizationHelper
authorize
in class AbstractEJBAuthorizationHelper
AbstractEJBAuthorizationHelper.authorize(Resource)
public boolean isCallerInRole(String roleName, String ejbName, Principal ejbPrincipal, Subject callerSubject, String contextID, Set<SecurityRoleRef> securityRoleRefs)
AbstractEJBAuthorizationHelper
isCallerInRole
in class AbstractEJBAuthorizationHelper
AbstractEJBAuthorizationHelper.isCallerInRole(Resource, String)
public boolean isCallerInRole(Resource resource, String roleName) throws WrongEEResourceException, MissingArgumentsException
AbstractEJBAuthorizationHelper
isCallerInRole
in class AbstractEJBAuthorizationHelper
WrongEEResourceException
- 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)
AbstractEJBAuthorizationHelper
isCallerInRole
in class AbstractEJBAuthorizationHelper
AbstractEJBAuthorizationHelper.isCallerInRole(Resource, String)
public String getEJBVersion()
AbstractEJBAuthorizationHelper
getEJBVersion
in class AbstractEJBAuthorizationHelper
public void setEJBVersion(String ejbVersion)
AbstractEJBAuthorizationHelper
setEJBVersion
in class AbstractEJBAuthorizationHelper
public boolean authorize(Resource resource) throws WrongEEResourceException, MissingArgumentsException
AbstractEJBAuthorizationHelper
authorize
in class AbstractEJBAuthorizationHelper
WrongEEResourceException
MissingArgumentsException
Copyright © 2019 JBoss by Red Hat. All rights reserved.