Package org.jboss.test.security.interfaces

Examples of org.jboss.test.security.interfaces.RunAsServiceRemote


      catch (PolicyContextException e)
      {
         throw new EJBException(e);
      }

      RunAsServiceRemote bean = getBean();
      bean.unprotectedEjbMethod(info);
   }
View Full Code Here


      catch (PolicyContextException e)
      {
         throw new EJBException(e);
      }

      RunAsServiceRemote bean = getBean();
      bean.runAsMethod(info);
   }
View Full Code Here

      catch (PolicyContextException e)
      {
         throw new EJBException(e);
      }

      RunAsServiceRemote bean = getBean();
      bean.groupMemberMethod(info);
   }
View Full Code Here

      catch (PolicyContextException e)
      {
         throw new EJBException(e);
      }

      RunAsServiceRemote bean = getBean();
      bean.userMethod(info);
   }
View Full Code Here

      catch (PolicyContextException e)
      {
         throw new EJBException(e);
      }

      RunAsServiceRemote bean = getBean();
      bean.allAuthMethod(info);
   }
View Full Code Here

      catch (PolicyContextException e)
      {
         throw new EJBException(e);
      }

      RunAsServiceRemote bean = getBean();
      bean.publicMethod(info);
   }
View Full Code Here

      bean.publicMethod(info);
   }

   private RunAsServiceRemote getBean()
   {
      RunAsServiceRemote bean = null;
      try
      {
         InitialContext ctx = new InitialContext();
         RunAsServiceRemoteHome home = (RunAsServiceRemoteHome) ctx.lookup("jacc/RunAs");
         bean = home.create();
View Full Code Here

         InitialContext ctx = new InitialContext();
         Object obj = ctx.lookup("jacc/RunAs");
         obj = PortableRemoteObject.narrow(obj, RunAsServiceRemoteHome.class);
         RunAsServiceRemoteHome home = (RunAsServiceRemoteHome) obj;
         System.out.println("Found RunAsServiceRemoteHome");
         RunAsServiceRemote bean = home.create();
         System.out.println("Created RunAsServiceRemote");
         Class[] sig = {CallerInfo.class};
         Method methodCall = bean.getClass().getMethod(method, sig);
         Object[] args = {info};
         methodCall.invoke(bean, args);
         bean.remove();
      }
      catch(Exception e)
      {
         e.printStackTrace();
         throw new ServletException(e);
View Full Code Here

TOP

Related Classes of org.jboss.test.security.interfaces.RunAsServiceRemote

Copyright © 2018 www.massapicom. 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.