Package org.jboss.test.security.interfaces

Examples of org.jboss.test.security.interfaces.StatelessSession.forward()


      obj = PortableRemoteObject.narrow(obj, StatelessSessionHome.class);
      StatelessSessionHome home = (StatelessSessionHome) obj;
      log.debug("Found Unsecure StatelessSessionHome");
      StatelessSession bean = home.create();
      log.debug("Created spec.UnsecureStatelessSession2");
      log.debug("Bean.forward('testPrincipalPropagation') -> " + bean.forward("testPrincipalPropagation"));
      bean.remove();
   }

   /**
    * Test that the echo method is accessible by an Echo role. Since the noop() method of the StatelessSession bean was
View Full Code Here


      log.debug("Bean.noop(), ok");

      try
      {
         // This should not be allowed
         bean.forward("Hello");
         fail("Was able to call RunAsStatelessSession.forward");
      }
      catch (RemoteException e)
      {
         log.debug("StatelessSession.forward failed as expected");
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.