org.apache.qpid.server.security.access.config
Class PrincipalPermissions

java.lang.Object
  extended by org.apache.qpid.server.security.access.config.PrincipalPermissions

public class PrincipalPermissions
extends Object


Nested Class Summary
static class PrincipalPermissions.Permission
           
 
Constructor Summary
PrincipalPermissions(String user)
           
 
Method Summary
 org.apache.qpid.server.security.Result authorise(PrincipalPermissions.Permission permission, String... parameters)
           
 void grant(PrincipalPermissions.Permission permission, Object... parameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrincipalPermissions

public PrincipalPermissions(String user)
Method Detail

grant

public void grant(PrincipalPermissions.Permission permission,
                  Object... parameters)
Parameters:
permission - the type of permission to check
parameters - vararg depending on what permission was passed in ACCESS: none BIND: none CONSUME: AMQShortString queueName, Boolean temporary, Boolean ownQueueOnly CREATEQUEUE: Boolean temporary, AMQShortString queueName, AMQShortString exchangeName, AMQShortString routingKey CREATEEXCHANGE: AMQShortString exchangeName, AMQShortString Class DELETE: none PUBLISH: Exchange exchange, AMQShortString routingKey PURGE: none UNBIND: none

authorise

public org.apache.qpid.server.security.Result authorise(PrincipalPermissions.Permission permission,
                                                        String... parameters)
Parameters:
permission - the type of permission to check
parameters - vararg depending on what permission was passed in ACCESS: none BIND: QueueBindBody bindmethod, Exchange exchange, AMQQueue queue, AMQShortString routingKey CONSUME: AMQQueue queue CREATEQUEUE: Boolean autodelete, AMQShortString name CREATEEXCHANGE: AMQShortString exchangeName DELETE: none PUBLISH: Exchange exchange, AMQShortString routingKey PURGE: none UNBIND: none


Licensed to the Apache Software Foundation