org.jboss.jms.server.container
Class SecurityAspect

java.lang.Object
  extended by org.jboss.jms.server.container.SecurityAspect

public class SecurityAspect
extends java.lang.Object

This aspect enforces the JBossMessaging JMS security policy. This aspect is PER_INSTANCE For performance reasons we cache access rights in the interceptor for a maximum of INVALIDATION_INTERVAL milliseconds. This is because we don't want to do a full authentication and authorization on every send, for example, since this will drastically reduce performance. This means any changes to security data won't be reflected until INVALIDATION_INTERVAL milliseconds later.

Version:
$Revision 1.1 $ $Id: SecurityAspect.java 3147 2007-09-27 19:12:12Z anil.saldhana@jboss.com $
Author:
Tim Fox, Ovidiu Feodorov

Constructor Summary
SecurityAspect()
           
 
Method Summary
protected  void checkConsumerAccess(org.jboss.aop.joinpoint.Invocation invocation)
           
 java.lang.Object handleCreateBrowserDelegate(org.jboss.aop.joinpoint.Invocation invocation)
           
 java.lang.Object handleCreateConsumerDelegate(org.jboss.aop.joinpoint.Invocation invocation)
           
 java.lang.Object handleSend(org.jboss.aop.joinpoint.Invocation invocation)
           
 java.lang.Object handleSendTransaction(org.jboss.aop.joinpoint.Invocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityAspect

public SecurityAspect()
Method Detail

handleCreateConsumerDelegate

public java.lang.Object handleCreateConsumerDelegate(org.jboss.aop.joinpoint.Invocation invocation)
                                              throws java.lang.Throwable
Throws:
java.lang.Throwable

handleCreateBrowserDelegate

public java.lang.Object handleCreateBrowserDelegate(org.jboss.aop.joinpoint.Invocation invocation)
                                             throws java.lang.Throwable
Throws:
java.lang.Throwable

handleSend

public java.lang.Object handleSend(org.jboss.aop.joinpoint.Invocation invocation)
                            throws java.lang.Throwable
Throws:
java.lang.Throwable

handleSendTransaction

public java.lang.Object handleSendTransaction(org.jboss.aop.joinpoint.Invocation invocation)
                                       throws java.lang.Throwable
Throws:
java.lang.Throwable

checkConsumerAccess

protected void checkConsumerAccess(org.jboss.aop.joinpoint.Invocation invocation)
                            throws java.lang.Throwable
Throws:
java.lang.Throwable


Copyright © 2006 JBoss Inc. All Rights Reserved.