Examples of authoriseMethod()


Examples of org.apache.qpid.server.security.SecurityManager.authoriseMethod()

            }
           
      if (isAccessMethod(methodName) || impact == MBeanOperationInfo.INFO)
      {
        // Check for read-only method invocation permission
                if (!security.authoriseMethod(Operation.ACCESS, type, methodName))
                {
                    throw new SecurityException("Permission denied: Access " + methodName);
                }
      }
      else if (isUpdateMethod(methodName))
View Full Code Here

Examples of org.apache.qpid.server.security.SecurityManager.authoriseMethod()

                }
      }
      else if (isUpdateMethod(methodName))
            {
              // Check for setting properties permission
                if (!security.authoriseMethod(Operation.UPDATE, type, methodName))
                {
                    throw new SecurityException("Permission denied: Update " + methodName);
                }
            }
      else
View Full Code Here

Examples of org.apache.qpid.server.security.SecurityManager.authoriseMethod()

                }
            }
      else
            {
              // Check for invoking/executing method action/operation permission
                if (!security.authoriseMethod(Operation.EXECUTE, type, methodName))
                {
                    throw new SecurityException("Permission denied: Execute " + methodName);
                }
            }
     
View Full Code Here

Examples of org.apache.qpid.server.security.SecurityManager.authoriseMethod()

    }

    private boolean isQueueUpdateMethodAuthorized(String methodName, VirtualHost host)
    {
        SecurityManager securityManager = host.getSecurityManager();
        return securityManager.authoriseMethod(Operation.UPDATE, "VirtualHost.Queue", methodName);
    }

}
View Full Code Here

Examples of org.apache.qpid.server.security.SecurityManager.authoriseMethod()

        methodName = getMethodName(method, args);
        if (isAccessMethod(methodName) || impact == MBeanOperationInfo.INFO)
        {
            // Check for read-only method invocation permission
            if (!security.authoriseMethod(Operation.ACCESS, type, methodName))
            {
                throw new SecurityException("Permission denied: Access " + methodName);
            }
        }
        else
View Full Code Here

Examples of org.apache.qpid.server.security.SecurityManager.authoriseMethod()

            }
        }
        else
        {
            // Check for setting properties permission
            if (!security.authoriseMethod(Operation.UPDATE, type, methodName))
            {
                throw new SecurityException("Permission denied: Update " + methodName);
            }
        }
View Full Code Here

Examples of org.apache.qpid.server.security.SecurityManager.authoriseMethod()

    }

    private void authorizeMethod(String methodName, VirtualHost<?,?,?> vhost)
    {
        SecurityManager securityManager = getBroker().getSecurityManager();
        securityManager.authoriseMethod(Operation.UPDATE, "VirtualHost.Queue", methodName, vhost.getName());
    }

}
View Full Code Here

Examples of org.apache.qpid.server.security.SecurityManager.authoriseMethod()

    }

    private void authorizeMethod(String methodName, VirtualHost host)
    {
        SecurityManager securityManager = host.getSecurityManager();
        securityManager.authoriseMethod(Operation.UPDATE, "VirtualHost.Queue", methodName);
    }

}
View Full Code Here

Examples of org.apache.qpid.server.security.SecurityManager.authoriseMethod()

            security = virtualHost.getSecurityManager();
        }

        methodName = getMethodName(method, args);
        Operation operation = (isAccessMethod(methodName) || impact == MBeanOperationInfo.INFO) ? Operation.ACCESS : Operation.UPDATE;
        security.authoriseMethod(operation, type, methodName);

        if (_managementRightsInferAllAccess)
        {
            try
            {
View Full Code Here

Examples of org.apache.qpid.server.security.SecurityManager.authoriseMethod()

    }

    private boolean isQueueUpdateMethodAuthorized(String methodName, String virtualHost)
    {
        SecurityManager securityManager = getSecurityManager(virtualHost);
        return securityManager.authoriseMethod(Operation.UPDATE, "VirtualHost.Queue", methodName);
    }

    private SecurityManager getSecurityManager(String virtualHost)
    {
        IApplicationRegistry appRegistry = ApplicationRegistry.getInstance();
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.