Package org.jboss.test.util

Examples of org.jboss.test.util.AppCallbackHandler


      }
      private synchronized void internalTestEchoArgs()
         throws Exception
      {
         log.debug("+++ internalTestEchoArgs");
         AppCallbackHandler handler = new AppCallbackHandler(username, password);
         log.debug("Creating LoginContext(srp-test-multi)");
         LoginContext lc = new LoginContext("srp-test-multi", handler);
         lc.login();
         log.debug("Created LoginContext, subject="+lc.getSubject());
View Full Code Here


   }

   private LoginContext login(String username, char[] password) throws Exception
   {
      String confName = System.getProperty("conf.name", "other");
      AppCallbackHandler handler = new AppCallbackHandler(username, password);
      log.debug("Creating LoginContext("+confName+")");
      LoginContext lc = new LoginContext(confName, handler);
      lc.login();
      log.debug("Created LoginContext, subject="+lc.getSubject());
      return lc;
View Full Code Here

         // Set the config url to the security/auth.conf resource
         ClassLoader loader = Thread.currentThread().getContextClassLoader();
         URL authURL = loader.getResource("security/auth.conf");
         System.setProperty("java.security.auth.login.config", authURL.toString());
      }
      AppCallbackHandler handler = new AppCallbackHandler(username, password);
      log.debug("Creating LoginContext("+confName+")");
      LoginContext lc = new LoginContext(confName, handler);
      lc.login();
      log.debug("Created LoginContext, subject="+lc.getSubject());
      return lc;
View Full Code Here

   private void login() throws Exception
   {
      flushAuthCache();
      String username = "jduke";
      char[] password = "theduke".toCharArray();
      AppCallbackHandler handler = new AppCallbackHandler(username, password);
      getLog().debug("Creating LoginContext(other)");
      lc = new LoginContext("spec-test", handler);
      lc.login();
      getLog().debug("Created LoginContext, subject="+lc.getSubject());
   }
View Full Code Here

   private void login() throws Exception
   {
      lc = null;
      String username = "jduke";
      char[] password = "theduke".toCharArray();
      AppCallbackHandler handler = new AppCallbackHandler(username, password);
      log.debug("Creating LoginContext(ejb-timers)");
      lc = new LoginContext("ejb-timers", handler);
      lc.login();
      log.debug("Created LoginContext, subject="+lc.getSubject());
   }
View Full Code Here

    */
   protected void login(String username, char[] password) throws LoginException
   {
      // get the conf name from a system property - default is profileservice.
      String confName = System.getProperty("conf.name", "profileservice");
      AppCallbackHandler handler = new AppCallbackHandler(username, password);
      this.loginContext = new LoginContext(confName, handler);
      this.loginContext.login();
   }
View Full Code Here

      String pass = getPassword();
      String config = getLoginConfig();
      char[] password = null;
      if (pass != null)
         password = pass.toCharArray();
      AppCallbackHandler handler = new AppCallbackHandler(username, password);
      getLog().debug("Creating LoginContext(" + config + ")");
      lc = new LoginContext(config, handler);
      lc.login();
      getLog().debug("Created LoginContext, subject=" + lc.getSubject());
   }
View Full Code Here

      String pass = getPassword();
      String config = getLoginConfig();
      char[] password = null;
      if (pass != null)
         password = pass.toCharArray();
      AppCallbackHandler handler = new AppCallbackHandler(username, password);
      getLog().debug("Creating LoginContext(" + config + ")");
      lc = new LoginContext(config, handler);
      lc.login();
      getLog().debug("Created LoginContext, subject=" + lc.getSubject());
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.util.AppCallbackHandler

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.