| java.lang.Object org.apache.geronimo.openejb.deployment.SecurityBuilder
SecurityBuilder | public class SecurityBuilder (Code) | | |
addComponentPermissions | public void addComponentPermissions(String defaultRole, PermissionCollection notAssigned, AssemblyDescriptor assemblyDescriptor, String ejbName, List<SecurityRoleRef> securityRoleRefs, ComponentPermissions componentPermissions) throws DeploymentException(Code) | | Fill the container moduleBuilder with the security information that it needs
to create the proper interceptors. A SecurityConfiguration
is also filled with permissions that need to be used to fill the JACC
policy configuration.
Parameters: defaultRole - default role for otherwise unassigned permissions Parameters: notAssigned - the set of all possible permissions. These will beculled so that all that are left are those that havenot been assigned roles. Parameters: assemblyDescriptor - the assembly descriptor Parameters: ejbName - the name of the EJB Parameters: securityRoleRefs - the EJB's role references Parameters: componentPermissions - the holder for the ejb's permissions throws: DeploymentException - if any constraints are violated |
addToPermissions | public void addToPermissions(PermissionCollection permissions, String ejbName, String methodInterface, String interfaceClass, ClassLoader classLoader) throws DeploymentException(Code) | | Generate all the possible permissions for a bean's interface.
Method permissions are defined in the deployment descriptor as a binary
relation from the set of security roles to the set of methods of the
home, component, and/or web service endpoint interfaces of session and
entity beans, including all their superinterfaces (including the methods
of the EJBHome and EJBObject interfaces and/or
EJBLocalHome and EJBLocalObject interfaces).
Parameters: permissions - the permission set to be extended Parameters: ejbName - the name of the EJB Parameters: methodInterface - the EJB method interface Parameters: interfaceClass - the class name of the interface to be used to generate the permissions Parameters: classLoader - the class loader to be used in obtaining the interface class throws: org.apache.geronimo.common.DeploymentException - in case a class could not be found |
|
|