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(Resource resource)
Authorize the EJB
|
abstract boolean |
authorize(String ejbName,
Method ejbMethod,
Principal ejbPrincipal,
String invocationInterfaceString,
CodeSource ejbCS,
Subject callerSubject,
RunAs callerRunAs,
String contextID,
RoleGroup methodRoles)
Deprecated.
|
abstract String |
getEJBVersion()
Get the EJB Version
|
abstract boolean |
isCallerInRole(Resource resource,
String roleName)
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)
Deprecated.
|
abstract boolean |
isCallerInRole(String roleName,
String ejbName,
Principal ejbPrincipal,
Subject callerSubject,
String contextID,
Set<SecurityRoleRef> securityRoleRefs,
boolean enforceEJBRestrictions)
Deprecated.
|
abstract void |
setEJBVersion(String ejbVersion)
Set the EJB Version
|
audit, authenticationAudit, authorizationAudit, getCallerPrincipal, getContextMap, getPolicyRegistration, getSecurityContext, setPolicyRegistration, setSecurityContextprotected String version
public abstract String getEJBVersion()
public abstract void setEJBVersion(String ejbVersion)
ejbVersion - public abstract boolean authorize(Resource resource) throws WrongEEResourceException
resource - {@code - WrongEEResourceException} if the resource is not EJB resourceWrongEEResourceExceptionpublic 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 or contextID is nullauthorize(Resource)public abstract boolean isCallerInRole(Resource resource, String roleName) throws WrongEEResourceException, MissingArgumentsException
roleName - ejbName - ejbPrincipal - callerSubject - contextID - securityRoleRefs - WrongEEResourceException - when resource is not EJB ResourceMissingArgumentsException - roleName, ejbName or 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 nullisCallerInRole(Resource, String)public 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 nullisCallerInRole(Resource, String)Copyright © 2019 JBoss by Red Hat. All rights reserved.