org.apache.qpid.server.security
Class AbstractProxyPlugin

java.lang.Object
  extended by org.apache.qpid.server.security.AbstractPlugin
      extended by org.apache.qpid.server.security.AbstractProxyPlugin
All Implemented Interfaces:
Plugin, SecurityPlugin

public abstract class AbstractProxyPlugin
extends AbstractPlugin

This SecurityPlugin proxies the authorise calls to a serries of methods, one per Operation. Plugins that extend this class should override the relevant authorise method and implement their own #setConfiguration(Configuration) method.


Field Summary
 
Fields inherited from class org.apache.qpid.server.security.AbstractPlugin
_config, _logger
 
Constructor Summary
AbstractProxyPlugin()
           
 
Method Summary
 Result access(ObjectType objectType, Object instance)
          Authorise access granted to an object instance.
 Result accessVirtualhost(Object instance)
           
 Result authorise(Operation operation, ObjectType objectType, ObjectProperties properties)
          Authorise an operation on an object defined by a set of properties.
 Result authoriseAccess(ObjectType object, ObjectProperties properties)
           
 Result authoriseBind(ObjectType object, ObjectProperties properties)
           
 Result authoriseConsume(ObjectType object, ObjectProperties properties)
           
 Result authoriseCreate(ObjectType object, ObjectProperties properties)
           
 Result authoriseDelete(ObjectType object, ObjectProperties properties)
           
 Result authoriseExecute(ObjectType object, ObjectProperties properties)
           
 Result authorisePublish(ObjectType object, ObjectProperties properties)
           
 Result authorisePurge(ObjectType object, ObjectProperties properties)
           
 Result authoriseUnbind(ObjectType object, ObjectProperties properties)
           
 Result authoriseUpdate(ObjectType object, ObjectProperties properties)
           
 
Methods inherited from class org.apache.qpid.server.security.AbstractPlugin
configure, getDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractProxyPlugin

public AbstractProxyPlugin()
Method Detail

authoriseConsume

public Result authoriseConsume(ObjectType object,
                               ObjectProperties properties)

authorisePublish

public Result authorisePublish(ObjectType object,
                               ObjectProperties properties)

authoriseCreate

public Result authoriseCreate(ObjectType object,
                              ObjectProperties properties)

authoriseAccess

public Result authoriseAccess(ObjectType object,
                              ObjectProperties properties)

authoriseBind

public Result authoriseBind(ObjectType object,
                            ObjectProperties properties)

authoriseUnbind

public Result authoriseUnbind(ObjectType object,
                              ObjectProperties properties)

authoriseDelete

public Result authoriseDelete(ObjectType object,
                              ObjectProperties properties)

authorisePurge

public Result authorisePurge(ObjectType object,
                             ObjectProperties properties)

authoriseExecute

public Result authoriseExecute(ObjectType object,
                               ObjectProperties properties)

authoriseUpdate

public Result authoriseUpdate(ObjectType object,
                              ObjectProperties properties)

accessVirtualhost

public Result accessVirtualhost(Object instance)

access

public Result access(ObjectType objectType,
                     Object instance)
Description copied from interface: SecurityPlugin
Authorise access granted to an object instance.

Specified by:
access in interface SecurityPlugin
Specified by:
access in class AbstractPlugin

authorise

public Result authorise(Operation operation,
                        ObjectType objectType,
                        ObjectProperties properties)
Description copied from interface: SecurityPlugin
Authorise an operation on an object defined by a set of properties.

Specified by:
authorise in interface SecurityPlugin
Specified by:
authorise in class AbstractPlugin


Licensed to the Apache Software Foundation