Examples of authorise()


Examples of org.apache.qpid.server.security.access.PrincipalPermissions.authorise()

                case BIND:  // Body QueueDeclareBody - Parameters : Exchange, Queue, QueueName
                    // Body QueueBindBody - Paramters : Exchange, Queue, QueueName
                    if (parameters.length == 3)
                    {
                        // Parameters : Exchange, Queue, RoutingKey
                        if (permissions.authorise(Permission.BIND, body, parameters[0], parameters[1], parameters[2]))
                        {
                            return GRANTED;
                        }
                    }
                    break;
View Full Code Here

Examples of org.apache.qpid.server.security.access.PrincipalPermissions.authorise()

                            return GRANTED;
                        }
                    }
                    break;
                case CONSUME: // Parameters : none
                    if (parameters.length == 1 && permissions.authorise(Permission.CONSUME, parameters[0]))
                    {
                        return GRANTED;
                    }
                    break;
                case CREATE: // Body : QueueDeclareBody | ExchangeDeclareBody - Parameters : none
View Full Code Here

Examples of org.apache.qpid.server.security.access.PrincipalPermissions.authorise()

                    {
                        return GRANTED;
                    }
                    break;
                case CREATE: // Body : QueueDeclareBody | ExchangeDeclareBody - Parameters : none
                    if (permissions.authorise(Permission.CREATE, body))
                    {
                        return GRANTED;
                    }
                    break;
                case PUBLISH: // Body : BasicPublishBody  Parameters : exchange
View Full Code Here

Examples of org.apache.qpid.server.security.access.PrincipalPermissions.authorise()

                    }
                    break;
                case PUBLISH: // Body : BasicPublishBody  Parameters : exchange
                    if (parameters.length == 1 && parameters[0] instanceof Exchange)
                    {
                        if (permissions.authorise(Permission.PUBLISH, ((Exchange) parameters[0]).getName(),
                                                  ((BasicPublishBody) body).getRoutingKey()))
                        {
                            return GRANTED;
                        }
                    }
View Full Code Here

Examples of org.apache.qpid.server.security.access.config.PrincipalPermissions.authorise()

        }
       
        // Authorise object access
        if (objectType == ObjectType.VIRTUALHOST)
        {
            return principalPermissions.authorise(Permission.ACCESS);
        }
       
        // Default
    return getDefault();
    }
View Full Code Here

Examples of org.apache.qpid.server.security.access.config.PrincipalPermissions.authorise()

       
        // Authorise operation
        switch (operation)
        {
        case CONSUME:
            return principalPermissions.authorise(Permission.CONSUME, properties.get(NAME), properties.get(AUTO_DELETE), properties.get(OWNER));
        case PUBLISH:
            return principalPermissions.authorise(Permission.PUBLISH, properties.get(NAME), properties.get(ROUTING_KEY));
        case CREATE:
            if (objectType == ObjectType.EXCHANGE)
            {
View Full Code Here

Examples of org.apache.qpid.server.security.access.config.PrincipalPermissions.authorise()

        switch (operation)
        {
        case CONSUME:
            return principalPermissions.authorise(Permission.CONSUME, properties.get(NAME), properties.get(AUTO_DELETE), properties.get(OWNER));
        case PUBLISH:
            return principalPermissions.authorise(Permission.PUBLISH, properties.get(NAME), properties.get(ROUTING_KEY));
        case CREATE:
            if (objectType == ObjectType.EXCHANGE)
            {
                return principalPermissions.authorise(Permission.CREATEEXCHANGE, properties.get(NAME));
            }
View Full Code Here

Examples of org.apache.qpid.server.security.access.config.PrincipalPermissions.authorise()

        case PUBLISH:
            return principalPermissions.authorise(Permission.PUBLISH, properties.get(NAME), properties.get(ROUTING_KEY));
        case CREATE:
            if (objectType == ObjectType.EXCHANGE)
            {
                return principalPermissions.authorise(Permission.CREATEEXCHANGE, properties.get(NAME));
            }
            else if (objectType == ObjectType.QUEUE)
            {
                return principalPermissions.authorise(Permission.CREATEQUEUE, properties.get(AUTO_DELETE), properties.get(NAME));
            }
View Full Code Here

Examples of org.apache.qpid.server.security.access.config.PrincipalPermissions.authorise()

            {
                return principalPermissions.authorise(Permission.CREATEEXCHANGE, properties.get(NAME));
            }
            else if (objectType == ObjectType.QUEUE)
            {
                return principalPermissions.authorise(Permission.CREATEQUEUE, properties.get(AUTO_DELETE), properties.get(NAME));
            }
        case ACCESS:
            return principalPermissions.authorise(Permission.ACCESS);
        case BIND:
            return principalPermissions.authorise(Permission.BIND, null, properties.get(NAME), properties.get(QUEUE_NAME), properties.get(ROUTING_KEY));
View Full Code Here

Examples of org.apache.qpid.server.security.access.config.PrincipalPermissions.authorise()

            else if (objectType == ObjectType.QUEUE)
            {
                return principalPermissions.authorise(Permission.CREATEQUEUE, properties.get(AUTO_DELETE), properties.get(NAME));
            }
        case ACCESS:
            return principalPermissions.authorise(Permission.ACCESS);
        case BIND:
            return principalPermissions.authorise(Permission.BIND, null, properties.get(NAME), properties.get(QUEUE_NAME), properties.get(ROUTING_KEY));
        case UNBIND:
            return principalPermissions.authorise(Permission.UNBIND);
        case DELETE:
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.