Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.mq.security
Class ServerSecurityInterceptor

    java.lang.Object
      org.jboss.mq.server.JMSServerInterceptorSupport
          org.jboss.mq.security.ServerSecurityInterceptor

All Implemented Interfaces:
  JMSServerInterceptor

public class ServerSecurityInterceptor
extends JMSServerInterceptorSupport

ServerSecurityInvoker.java

Version:
  $Revision: 1.6 $
Author:
  Peter Antman

Field Summary

Fields inherited from class org.jboss.mq.server.JMSServerInterceptorSupport
`log, nextInterceptor`

Constructor Summary
`ServerSecurityInterceptor(SecurityManager manager)`

Method Summary
`void` | `addMessage(ConnectionToken dc, SpyMessage message)` Add the message to the destination.
`void` | `addTemporaryDestination(ConnectionToken dc, javax.jms.Destination destination)` Remember the temporary destinations for a connection
`String` | `authenticate(String name, String password)` Check user for autentication.
`boolean` | `authorizeCreate(ConnectionToken dc, String destination)`
`boolean` | `authorizeRead(ConnectionToken dc, String destination)`
`boolean` | `authorizeWrite(ConnectionToken dc, String destination)`
`SpyMessage[]` | `browse(ConnectionToken dc, javax.jms.Destination dest, String selector)` #Description of the Method
`void` | `connectionClosing(ConnectionToken dc)` Close connection.
`void` | `deleteTemporaryDestination(ConnectionToken dc, SpyDestination destination)` #Description of the Method
`void` | `destroySubscription(ConnectionToken dc, DurableSubscriptionID id)` #Description of the Method
`javax.jms.TemporaryQueue` | `getTemporaryQueue(ConnectionToken dc)` Gets the TemporaryQueue attribute of the ServerIL object
`javax.jms.TemporaryTopic` | `getTemporaryTopic(ConnectionToken dc)` Gets the TemporaryTopic attribute of the ServerIL object
`SpyMessage` | `receive(ConnectionToken dc, int subscriberId, long wait)` #Description of the Method
`void` | `removeTemporaryDestination(ConnectionToken dc, SpyDestination destination)` Remove a temporary destination
`void` | `removeTemporaryDestinations(ConnectionToken dc)` Remove all temporary destination for a connection
`void` | `subscribe(ConnectionToken dc, Subscription sub)`
`void` | `transact(ConnectionToken dc, TransactionRequest t)` #Description of the Method

Methods inherited from class org.jboss.mq.server.JMSServerInterceptorSupport
`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 manager)

Method Detail

### authenticate

    public String authenticate(String name,
                               String password)
                        throws javax.jms.JMSException

  Description copied from class: `JMSServerInterceptorSupport`
  Check user for autentication.

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

### connectionClosing

    public void connectionClosing(ConnectionToken dc)
                           throws javax.jms.JMSException

  Close connection. Logout user after connection is closed.

  Specified by:
    `connectionClosing` in interface `JMSServerInterceptor`
  Overrides:
    `connectionClosing` in class `JMSServerInterceptorSupport`
  Parameters:
    `dc` - Description of Parameter
  Throws:
    `javax.jms.JMSException` - Description of Exception

### browse

    public SpyMessage[] browse(ConnectionToken dc,
                               javax.jms.Destination dest,
                               String selector)
                        throws javax.jms.JMSException

  Description copied from class: `JMSServerInterceptorSupport`
  #Description of the Method

  Specified by:
    `browse` in interface `JMSServerInterceptor`
  Overrides:
    `browse` in class `JMSServerInterceptorSupport`
  Parameters:
    `dc` - Description of Parameter
    `dest` - Description of Parameter
    `selector` - Description of Parameter
  Returns:
    Description of the Returned Value
  Throws:
    `javax.jms.JMSException` - Description of Exception

### receive

    public SpyMessage receive(ConnectionToken dc,
                              int subscriberId,
                              long wait)
                       throws javax.jms.JMSException

  Description copied from class: `JMSServerInterceptorSupport`
  #Description of the Method

  Specified by:
    `receive` in interface `JMSServerInterceptor`
  Overrides:
    `receive` in class `JMSServerInterceptorSupport`
  Parameters:
    `dc` - Description of Parameter
    `subscriberId` - Description of Parameter
    `wait` - Description of Parameter
  Returns:
    Description of the Returned Value
  Throws:
    `javax.jms.JMSException` - Description of Exception

### subscribe

    public void subscribe(ConnectionToken dc,
                          Subscription sub)
                   throws javax.jms.JMSException

  Specified by:
    `subscribe` in interface `JMSServerInterceptor`
  Overrides:
    `subscribe` in class `JMSServerInterceptorSupport`
  Parameters:
    `dc` - org.jboss.mq.ConnectionToken
    `sub` - org.jboss.mq.Subscription
  Throws:
    `javax.jms.JMSException` - The exception description.

### addMessage

    public void addMessage(ConnectionToken dc,
                           SpyMessage message)
                    throws javax.jms.JMSException

  Description copied from class: `JMSServerInterceptorSupport`
  Add the message to the destination.

  Specified by:
    `addMessage` in interface `JMSServerInterceptor`
  Overrides:
    `addMessage` in class `JMSServerInterceptorSupport`
  Parameters:
    `dc` - The feature to be added to the Message attribute
    `message` - The feature to be added to the Message attribute
  Throws:
    `javax.jms.JMSException` - Description of Exception

### transact

    public void transact(ConnectionToken dc,
                         TransactionRequest t)
                  throws javax.jms.JMSException

  Description copied from class: `JMSServerInterceptorSupport`
  #Description of the Method

  Specified by:
    `transact` in interface `JMSServerInterceptor`
  Overrides:
    `transact` in class `JMSServerInterceptorSupport`
  Parameters:
    `dc` - Description of Parameter
    `t` - Description of Parameter
  Throws:
    `javax.jms.JMSException` - Description of Exception

### destroySubscription

    public void destroySubscription(ConnectionToken dc,
                                    DurableSubscriptionID id)
                             throws javax.jms.JMSException

  Description copied from class: `JMSServerInterceptorSupport`
  #Description of the Method

  Specified by:
    `destroySubscription` in interface `JMSServerInterceptor`
  Overrides:
    `destroySubscription` in class `JMSServerInterceptorSupport`
  Parameters:
    `id` - Description of Parameter
  Throws:
    `javax.jms.JMSException` - Description of Exception

### getTemporaryTopic

    public javax.jms.TemporaryTopic getTemporaryTopic(ConnectionToken dc)
                                               throws javax.jms.JMSException

  Description copied from class: `JMSServerInterceptorSupport`
  Gets the TemporaryTopic attribute of the ServerIL object

  Specified by:
    `getTemporaryTopic` in interface `JMSServerInterceptor`
  Overrides:
    `getTemporaryTopic` in class `JMSServerInterceptorSupport`
  Parameters:
    `dc` - Description of Parameter
  Returns:
    The TemporaryTopic value
  Throws:
    `javax.jms.JMSException` - Description of Exception

### getTemporaryQueue

    public javax.jms.TemporaryQueue getTemporaryQueue(ConnectionToken dc)
                                               throws javax.jms.JMSException

  Description copied from class: `JMSServerInterceptorSupport`
  Gets the TemporaryQueue attribute of the ServerIL object

  Specified by:
    `getTemporaryQueue` in interface `JMSServerInterceptor`
  Overrides:
    `getTemporaryQueue` in class `JMSServerInterceptorSupport`
  Parameters:
    `dc` - Description of Parameter
  Returns:
    The TemporaryQueue value
  Throws:
    `javax.jms.JMSException` - Description of Exception

### deleteTemporaryDestination

    public void deleteTemporaryDestination(ConnectionToken dc,
                                           SpyDestination destination)
                                    throws javax.jms.JMSException

  Description copied from class: `JMSServerInterceptorSupport`
  #Description of the Method

  Specified by:
    `deleteTemporaryDestination` in interface `JMSServerInterceptor`
  Overrides:
    `deleteTemporaryDestination` in class `JMSServerInterceptorSupport`
  Parameters:
    `dc` - Description of Parameter
    `destination` - Description of Parameter
  Throws:
    `javax.jms.JMSException` - Description of Exception

### authorizeRead

    public boolean authorizeRead(ConnectionToken dc,
                                 String destination)
                          throws javax.jms.JMSException

  Throws:
    `javax.jms.JMSException`

### authorizeWrite

    public boolean authorizeWrite(ConnectionToken dc,
                                  String destination)
                           throws javax.jms.JMSException

  Throws:
    `javax.jms.JMSException`

### authorizeCreate

    public boolean authorizeCreate(ConnectionToken dc,
                                   String destination)
                            throws javax.jms.JMSException

  Throws:
    `javax.jms.JMSException`

### addTemporaryDestination

    public void addTemporaryDestination(ConnectionToken dc,
                                        javax.jms.Destination destination)

  Remember the temporary destinations for a connection

### removeTemporaryDestination

    public void removeTemporaryDestination(ConnectionToken dc,
                                           SpyDestination destination)

  Remove a temporary destination

### removeTemporaryDestinations

    public void removeTemporaryDestinations(ConnectionToken dc)

  Remove all temporary destination for a connection

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002 JBoss Group, LLC. All Rights Reserved.