org.jboss.mq.security
Class ServerSecurityInterceptor

java.lang.Object
  extended byorg.jboss.mq.server.JMSServerInterceptorSupport (src) 
      extended byorg.jboss.mq.security.ServerSecurityInterceptor
All Implemented Interfaces:
JMSServerInterceptor (src)

public class ServerSecurityInterceptor
extends JMSServerInterceptorSupport (src)

ServerSecurityInvoker.java


Field Summary
 
Fields inherited from class org.jboss.mq.server.JMSServerInterceptorSupport (src)
log, nextInterceptor
 
Constructor Summary
ServerSecurityInterceptor(SecurityManager (src)  manager)
           
 
Method Summary
 void addMessage(ConnectionToken (src)  dc, SpyMessage (src)  message)
          Add the message to the destination.
 void addTemporaryDestination(ConnectionToken (src)  dc, Destination (src)  destination)
          Remember the temporary destinations for a connection
 java.lang.String authenticate(java.lang.String name, java.lang.String password)
          Check user for autentication.
 boolean authorizeCreate(ConnectionToken (src)  dc, java.lang.String destination)
           
 boolean authorizeRead(ConnectionToken (src)  dc, java.lang.String destination)
           
 boolean authorizeWrite(ConnectionToken (src)  dc, java.lang.String destination)
           
 SpyMessage (src) [] browse(ConnectionToken (src)  dc, Destination (src)  dest, java.lang.String selector)
          #Description of the Method
 void connectionClosing(ConnectionToken (src)  dc)
          Close connection.
 void deleteTemporaryDestination(ConnectionToken (src)  dc, SpyDestination (src)  destination)
          #Description of the Method
 void destroySubscription(ConnectionToken (src)  dc, DurableSubscriptionID (src)  id)
          #Description of the Method
 TemporaryQueue (src) getTemporaryQueue(ConnectionToken (src)  dc)
          Gets the TemporaryQueue attribute of the ServerIL object
 TemporaryTopic (src) getTemporaryTopic(ConnectionToken (src)  dc)
          Gets the TemporaryTopic attribute of the ServerIL object
 SpyMessage (src) receive(ConnectionToken (src)  dc, int subscriberId, long wait)
          #Description of the Method
 void removeTemporaryDestination(ConnectionToken (src)  dc, SpyDestination (src)  destination)
          Remove a temporary destination
 void removeTemporaryDestinations(ConnectionToken (src)  dc)
          Remove all temporary destination for a connection
 void subscribe(ConnectionToken (src)  dc, Subscription (src)  sub)
           
 void transact(ConnectionToken (src)  dc, TransactionRequest (src)  t)
          #Description of the Method
 
Methods inherited from class org.jboss.mq.server.JMSServerInterceptorSupport (src)
acknowledge, checkID, checkUser, createQueue, createTopic, getDurableTopic, getID, getNext, getSubscription, getThreadGroup, ping, setEnabled, setNext, unsubscribe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerSecurityInterceptor

public ServerSecurityInterceptor(SecurityManager (src)  manager)
Method Detail

authenticate

public java.lang.String authenticate(java.lang.String name,
                                     java.lang.String password)
                              throws JMSException (src) 
Description copied from class: JMSServerInterceptorSupport (src)
Check user for autentication.

Specified by:
authenticate in interface JMSServerInterceptor (src)
Overrides:
authenticate in class JMSServerInterceptorSupport (src)
Parameters:
name - Description of Parameter
password - Description of Parameter
Returns:
a sessionId
Throws:
JMSException (src) - if user was not allowed to login

connectionClosing

public void connectionClosing(ConnectionToken (src)  dc)
                       throws JMSException (src) 
Close connection. Logout user after connection is closed.

Specified by:
connectionClosing in interface JMSServerInterceptor (src)
Overrides:
connectionClosing in class JMSServerInterceptorSupport (src)
Parameters:
dc - Description of Parameter
Throws:
JMSException (src) - Description of Exception

browse

public SpyMessage (src) [] browse(ConnectionToken (src)  dc,
                           Destination (src)  dest,
                           java.lang.String selector)
                    throws JMSException (src) 
Description copied from class: JMSServerInterceptorSupport (src)
#Description of the Method

Specified by:
browse in interface JMSServerInterceptor (src)
Overrides:
browse in class JMSServerInterceptorSupport (src)
Parameters:
dc - Description of Parameter
dest - Description of Parameter
selector - Description of Parameter
Returns:
Description of the Returned Value
Throws:
JMSException (src) - Description of Exception

receive

public SpyMessage (src)  receive(ConnectionToken (src)  dc,
                          int subscriberId,
                          long wait)
                   throws JMSException (src) 
Description copied from class: JMSServerInterceptorSupport (src)
#Description of the Method

Specified by:
receive in interface JMSServerInterceptor (src)
Overrides:
receive in class JMSServerInterceptorSupport (src)
Parameters:
dc - Description of Parameter
subscriberId - Description of Parameter
wait - Description of Parameter
Returns:
Description of the Returned Value
Throws:
JMSException (src) - Description of Exception

subscribe

public void subscribe(ConnectionToken (src)  dc,
                      Subscription (src)  sub)
               throws JMSException (src) 
Specified by:
subscribe in interface JMSServerInterceptor (src)
Overrides:
subscribe in class JMSServerInterceptorSupport (src)
Parameters:
dc - org.jboss.mq.ConnectionToken
sub - org.jboss.mq.Subscription
Throws:
JMSException (src) - The exception description.

addMessage

public void addMessage(ConnectionToken (src)  dc,
                       SpyMessage (src)  message)
                throws JMSException (src) 
Description copied from class: JMSServerInterceptorSupport (src)
Add the message to the destination.

Specified by:
addMessage in interface JMSServerInterceptor (src)
Overrides:
addMessage in class JMSServerInterceptorSupport (src)
Parameters:
dc - The feature to be added to the Message attribute
message - The feature to be added to the Message attribute
Throws:
JMSException (src) - Description of Exception

transact

public void transact(ConnectionToken (src)  dc,
                     TransactionRequest (src)  t)
              throws JMSException (src) 
Description copied from class: JMSServerInterceptorSupport (src)
#Description of the Method

Specified by:
transact in interface JMSServerInterceptor (src)
Overrides:
transact in class JMSServerInterceptorSupport (src)
Parameters:
dc - Description of Parameter
t - Description of Parameter
Throws:
JMSException (src) - Description of Exception

destroySubscription

public void destroySubscription(ConnectionToken (src)  dc,
                                DurableSubscriptionID (src)  id)
                         throws JMSException (src) 
Description copied from class: JMSServerInterceptorSupport (src)
#Description of the Method

Specified by:
destroySubscription in interface JMSServerInterceptor (src)
Overrides:
destroySubscription in class JMSServerInterceptorSupport (src)
Parameters:
id - Description of Parameter
Throws:
JMSException (src) - Description of Exception

getTemporaryTopic

public TemporaryTopic (src)  getTemporaryTopic(ConnectionToken (src)  dc)
                                 throws JMSException (src) 
Description copied from class: JMSServerInterceptorSupport (src)
Gets the TemporaryTopic attribute of the ServerIL object

Specified by:
getTemporaryTopic in interface JMSServerInterceptor (src)
Overrides:
getTemporaryTopic in class JMSServerInterceptorSupport (src)
Parameters:
dc - Description of Parameter
Returns:
The TemporaryTopic value
Throws:
JMSException (src) - Description of Exception

getTemporaryQueue

public TemporaryQueue (src)  getTemporaryQueue(ConnectionToken (src)  dc)
                                 throws JMSException (src) 
Description copied from class: JMSServerInterceptorSupport (src)
Gets the TemporaryQueue attribute of the ServerIL object

Specified by:
getTemporaryQueue in interface JMSServerInterceptor (src)
Overrides:
getTemporaryQueue in class JMSServerInterceptorSupport (src)
Parameters:
dc - Description of Parameter
Returns:
The TemporaryQueue value
Throws:
JMSException (src) - Description of Exception

deleteTemporaryDestination

public void deleteTemporaryDestination(ConnectionToken (src)  dc,
                                       SpyDestination (src)  destination)
                                throws JMSException (src) 
Description copied from class: JMSServerInterceptorSupport (src)
#Description of the Method

Specified by:
deleteTemporaryDestination in interface JMSServerInterceptor (src)
Overrides:
deleteTemporaryDestination in class JMSServerInterceptorSupport (src)
Parameters:
dc - Description of Parameter
destination - Description of Parameter
Throws:
JMSException (src) - Description of Exception

authorizeRead

public boolean authorizeRead(ConnectionToken (src)  dc,
                             java.lang.String destination)
                      throws JMSException (src) 
Throws:
JMSException (src)

authorizeWrite

public boolean authorizeWrite(ConnectionToken (src)  dc,
                              java.lang.String destination)
                       throws JMSException (src) 
Throws:
JMSException (src)

authorizeCreate

public boolean authorizeCreate(ConnectionToken (src)  dc,
                               java.lang.String destination)
                        throws JMSException (src) 
Throws:
JMSException (src)

addTemporaryDestination

public void addTemporaryDestination(ConnectionToken (src)  dc,
                                    Destination (src)  destination)
Remember the temporary destinations for a connection


removeTemporaryDestination

public void removeTemporaryDestination(ConnectionToken (src)  dc,
                                       SpyDestination (src)  destination)
Remove a temporary destination


removeTemporaryDestinations

public void removeTemporaryDestinations(ConnectionToken (src)  dc)
Remove all temporary destination for a connection