qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robbie Gemmell (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (QPID-5606) [Java Broker] Add a Principal representing the connection to HTTP and JMX management driven actions
Date Thu, 06 Mar 2014 16:46:52 GMT

    [ https://issues.apache.org/jira/browse/QPID-5606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13922733#comment-13922733
] 

Robbie Gemmell commented on QPID-5606:
--------------------------------------

JMX:
{noformat}
@@ -131,4 +153,53 @@ public class JMXPasswordAuthenticator implements JMXAuthenticator
     }


+    private static class JMSConnectionPrincipal implements SocketConnectionPrincipal
+    {
{noformat}

Unused imports? (only changes to file):
{noformat}
@@ -39,11 +39,14 @@ import javax.management.MBeanServer;
 import javax.management.ObjectName;
 import javax.management.RuntimeErrorException;
 import javax.management.remote.MBeanServerForwarder;
+import javax.management.remote.rmi.RMIServer;
 import javax.security.auth.Subject;
 import java.lang.reflect.InvocationHandler;
 import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;
 import java.lang.reflect.Proxy;
+import java.rmi.server.RemoteServer;
+import java.rmi.server.ServerNotActiveException;
 import java.security.AccessControlContext;
 import java.security.AccessController;
 import java.security.PrivilegedAction;
@@ -236,6 +239,7 @@ public class MBeanInvocationHandlerImpl implements InvocationHandler
         {
             try
             {
+
                 return Subject.doAs(SecurityManager.SYSTEM, new PrivilegedExceptionAction<Object>()
                 {
                     @Override
(END)
{noformat}

> [Java Broker] Add a Principal representing the connection to HTTP and JMX management
driven actions
> ---------------------------------------------------------------------------------------------------
>
>                 Key: QPID-5606
>                 URL: https://issues.apache.org/jira/browse/QPID-5606
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Java Broker
>            Reporter: Rob Godfrey
>            Assignee: Rob Godfrey
>             Fix For: 0.27
>
>
> For AMQP protocol actions we add Principals representing the connection associated with
the action to allow ACLs (and potentially logging in the future) to be driven off the current
running Subject.
> For JMS and HTTP management actions we should also add a Principal to the current context
which represents the connection.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message