Package org.jboss.test.jca.securedejb

Examples of org.jboss.test.jca.securedejb.CallerIdentityHome.create()


         log.debug("ejbcaller user setup failed", ignore);
      }

      LoginContext lc = login("ejbcaller", "ejbcallerpw".toCharArray());
      CallerIdentityHome home = (CallerIdentityHome) ctx.lookup("jca-test/CallerIdentity");
      CallerIdentity bean = home.create();
      bean.useCallerForAuth();
      lc.logout();
   }

   public void testConfiguredIdentityPropagation() throws Throwable
View Full Code Here


   {
      InitialContext ctx = super.getInitialContext();

      LoginContext lc = login("ejbcaller", "ejbcallerpw".toCharArray());
      CallerIdentityHome home = (CallerIdentityHome) ctx.lookup("jca-test/CallerIdentity");
      CallerIdentity bean = home.create();
      bean.useConfiguredForAuth();
      lc.logout();
   }

   public void testRunAsIdentityPropagationFS() throws Throwable
View Full Code Here

   public void testRunAsIdentityPropagationFS() throws Throwable
   {
      InitialContext ctx = super.getInitialContext();
      LoginContext lc = login("ejbcaller", "ejbcallerpw".toCharArray());
      CallerIdentityHome home = (CallerIdentityHome) ctx.lookup("jca-test/RunAsIdentityFS");
      CallerIdentity bean = home.create();
      bean.useRunAsForAuthFS();
      lc.logout();
   }

   public void testRunAsIdentityPropagationDS() throws Throwable
View Full Code Here

   public void testRunAsIdentityPropagationDS() throws Throwable
   {
      InitialContext ctx = super.getInitialContext();
      LoginContext lc = login("ejbcaller", "ejbcallerpw".toCharArray());
      CallerIdentityHome home = (CallerIdentityHome) ctx.lookup("jca-test/RunAsIdentityDS");
      CallerIdentity bean = home.create();
      bean.useRunAsForAuthDS();
      lc.logout();
   }

   private LoginContext login(String username, char[] password) throws Exception
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.