org.apache.qpid.server.security.access.plugins
Class AccessControl

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

public class AccessControl
extends org.apache.qpid.server.security.AbstractPlugin

This access control plugin implements version two plain text access control.


Field Summary
static org.apache.log4j.Logger _logger
           
static org.apache.qpid.server.security.SecurityPluginFactory<AccessControl> FACTORY
           
 
Fields inherited from class org.apache.qpid.server.security.AbstractPlugin
_config
 
Constructor Summary
AccessControl()
           
 
Method Summary
 org.apache.qpid.server.security.Result access(org.apache.qpid.server.security.access.ObjectType objectType, Object instance)
          Object instance access authorisation.
 org.apache.qpid.server.security.Result authorise(org.apache.qpid.server.security.access.Operation operation, org.apache.qpid.server.security.access.ObjectType objectType, org.apache.qpid.server.security.access.ObjectProperties properties)
          Check if an operation is authorised by asking the configuration object about the access control rules granted to the current thread's Principal.
 void configure(org.apache.qpid.server.configuration.plugins.ConfigurationPlugin config)
           
 org.apache.qpid.server.security.Result getDefault()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_logger

public static final org.apache.log4j.Logger _logger

FACTORY

public static final org.apache.qpid.server.security.SecurityPluginFactory<AccessControl> FACTORY
Constructor Detail

AccessControl

public AccessControl()
Method Detail

getDefault

public org.apache.qpid.server.security.Result getDefault()
Specified by:
getDefault in interface org.apache.qpid.server.security.SecurityPlugin
Overrides:
getDefault in class org.apache.qpid.server.security.AbstractPlugin

access

public org.apache.qpid.server.security.Result access(org.apache.qpid.server.security.access.ObjectType objectType,
                                                     Object instance)
Object instance access authorisation. Delegate to the authorise(Operation, ObjectType, ObjectProperties) method, with the operation set to ACCESS and no object properties.

Specified by:
access in interface org.apache.qpid.server.security.SecurityPlugin
Specified by:
access in class org.apache.qpid.server.security.AbstractPlugin

authorise

public org.apache.qpid.server.security.Result authorise(org.apache.qpid.server.security.access.Operation operation,
                                                        org.apache.qpid.server.security.access.ObjectType objectType,
                                                        org.apache.qpid.server.security.access.ObjectProperties properties)
Check if an operation is authorised by asking the configuration object about the access control rules granted to the current thread's Principal. If there is no current user the plugin will abstain.

Specified by:
authorise in interface org.apache.qpid.server.security.SecurityPlugin
Specified by:
authorise in class org.apache.qpid.server.security.AbstractPlugin

configure

public void configure(org.apache.qpid.server.configuration.plugins.ConfigurationPlugin config)
Specified by:
configure in interface org.apache.qpid.server.plugins.Plugin
Overrides:
configure in class org.apache.qpid.server.security.AbstractPlugin


Licensed to the Apache Software Foundation