User: oconnor
Date: 00/10/14 08:10:59
Modified: src/main/org/jboss/ejb/plugins SecurityInterceptor.java
Log:
Allow for null security & role managers.
Revision Changes Path
1.6 +5 -1 jboss/src/main/org/jboss/ejb/plugins/SecurityInterceptor.java
Index: SecurityInterceptor.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/ejb/plugins/SecurityInterceptor.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- SecurityInterceptor.java 2000/08/21 18:11:46 1.5
+++ SecurityInterceptor.java 2000/10/14 15:10:59 1.6
@@ -45,7 +45,7 @@
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
* @author <a href="mailto:[EMAIL PROTECTED]">Daniel O'Connor</a>.
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
*/
public class SecurityInterceptor
extends AbstractInterceptor
@@ -84,6 +84,10 @@
private void checkSecurityAssociation( MethodInvocation mi, boolean home)
throws Exception
{
+ // if this isn't ok, bean shouldn't deploy
+ if ((securityManager == null) || (realmMapping == null))
+ return;
+
Principal principal = SecurityAssociation.getPrincipal();
Object credential = SecurityAssociation.getCredential();
if (principal == null)