|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.lib.security.AbsPermissionManager org.ow2.jonas.lib.ejb21.PermissionManager
public class PermissionManager
Defines a PermissionManager class which will manage JACC permissions for an ejbjar
Constructor Summary | |
---|---|
PermissionManager(DeploymentDesc ejbDeploymentDesc,
String contextId)
Default Constructor |
Method Summary | |
---|---|
boolean |
checkSecurity(String ejbName,
EJBInvocation ejbInv,
boolean inRunAs)
Check the security for a given EJB signature method and for an EJB |
boolean |
isCallerInRole(String ejbName,
String roleName,
boolean inRunAs)
Test if the caller has a given role. |
protected void |
resetDeploymentDesc()
Reset Deployment Descriptor |
void |
translateEjbDeploymentDescriptor()
3.1.5 Translating EJB Deployment Descriptors A reference to a PolicyConfiguration object must be obtained by calling the getPolicyConfiguration method on the PolicyConfigurationFactory implementation class of the provider configured into the container. |
protected void |
translateEjbExcludeList()
3.1.5.2 Translating the EJB exclude-list An EJBMethodPermission object must be created for each method element occurring in the exclude-list element of the deployment descriptor. |
protected void |
translateEjbMethodPermission()
3.1.5.1 Translating EJB method-permission Elements For each method element of each method-permission element, an EJBMethodPermission object translated from the method element must be added to the policy statements of the PolicyConfiguration object. |
void |
translateEjbSecurityRoleRef()
3.1.5.3 Translating EJB security-role-ref Elements For each security-role-ref element appearing in the deployment descriptor, a corresponding EJBRoleRefPermission must be created. |
Methods inherited from class org.ow2.jonas.lib.security.AbsPermissionManager |
---|
commit, delete, getContextId, getPolicy, getPolicyConfiguration, setContextId, setPolicy, setPolicyConfiguration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PermissionManager(DeploymentDesc ejbDeploymentDesc, String contextId) throws PermissionManagerException
ejbDeploymentDesc
- EJB deployment DescriptorcontextId
- context ID used for PolicyContext
PermissionManagerException
- if permissions can't be setMethod Detail |
---|
public void translateEjbDeploymentDescriptor() throws PermissionManagerException
PermissionManagerException
- if permissions can't be setprotected void translateEjbMethodPermission() throws PermissionManagerException
PermissionManagerException
- if permissions can't be setprotected void translateEjbExcludeList() throws PermissionManagerException
PermissionManagerException
- if permissions can't be setpublic void translateEjbSecurityRoleRef() throws PermissionManagerException
PermissionManagerException
- if permissions can't be setpublic boolean checkSecurity(String ejbName, EJBInvocation ejbInv, boolean inRunAs)
ejbName
- name of the EJBejbInv
- object containing security signature of the method, args of
method, etcinRunAs
- bean calling this method is running in run-as mode or not ?
public boolean isCallerInRole(String ejbName, String roleName, boolean inRunAs)
ejbName
- The name of the EJB on wich look roleroleName
- The name of the security role. The role must be one of
the security-role-ref that is defined in the deployment
descriptor.inRunAs
- bean calling this method is running in run-as mode or not ?
4.3.2 of JACC
protected void resetDeploymentDesc()
resetDeploymentDesc
in class AbsPermissionManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |