org.apache.felix.mosgi.jmx.rmiconnector.mx4j.remote.rmi
Class RMIConnectionSubjectInvoker

java.lang.Object
  extended by org.apache.felix.mosgi.jmx.rmiconnector.mx4j.remote.rmi.RMIConnectionProxy
      extended by org.apache.felix.mosgi.jmx.rmiconnector.mx4j.remote.rmi.RMIConnectionSubjectInvoker
All Implemented Interfaces:
InvocationHandler

public class RMIConnectionSubjectInvoker
extends RMIConnectionProxy

An RMIConnection proxy that wraps the call into a Subject.doAsPrivileged(javax.security.auth.Subject, java.security.PrivilegedAction, java.security.AccessControlContext) invocation, in order to execute the code under subject-based security, and to perform subject delegation.

Version:
$Revision: 1.1.1.1 $
Author:
Simone Bordet

Method Summary
 Object invoke(Object proxy, Method method, Object[] args)
           
static javax.management.remote.rmi.RMIConnection newInstance(javax.management.remote.rmi.RMIConnection nested, javax.security.auth.Subject subject, AccessControlContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static javax.management.remote.rmi.RMIConnection newInstance(javax.management.remote.rmi.RMIConnection nested,
                                                                    javax.security.auth.Subject subject,
                                                                    AccessControlContext context)

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Overrides:
invoke in class RMIConnectionProxy
Throws:
Throwable


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.