/** * Gets the Log attribute of the JBossTestCase object * * @return The Log value */ protected Logger getLog() { return delegate.getLog(); }
/** Do a JAAS login with the current username, password and login config. * @throws Exception */ public void login() throws Exception { flushAuthCache("other"); String username = getUsername(); 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()); }
/** * Gets the Log attribute of the JBossTestCase object * * @return The Log value */ protected Logger getLog() { return delegate.getLog(); }
/** Do a JAAS login with the current username, password and login config. * @throws Exception */ public void login() throws Exception { try { flushAuthCache("other"); } catch(Exception e) { // JBTEST-13, this should not fail this login attempt getLog().debug("Failed to flushAuthCache; "+e); } String username = getUsername(); 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()); }
/** * The JUnit setup method * * @throws Exception for any error */ public void setUp() throws Exception { super.setUp(); log = getLog(); log.debug("JBossTestServices.setUp()"); init(); log.info("jbosstest.beancount: " + System.getProperty("jbosstest.beancount")); log.info("jbosstest.iterationcount: " + System.getProperty("jbosstest.iterationcount")); log.info("jbosstest.threadcount: " + System.getProperty("jbosstest.threadcount")); log.info("jbosstest.nodeploy: " + System.getProperty("jbosstest.nodeploy")); log.info("jbosstest.jndiurl: " + this.getJndiURL()); log.info("jbosstest.jndifactory: " + this.getJndiInitFactory()); }
/** * The JUnit setup method * * @throws Exception for any error */ public void setUp() throws Exception { super.setUp(); log = getLog(); log.debug("JBossTestServices.setUp()"); init(); log.info("jbosstest.beancount: " + System.getProperty("jbosstest.beancount")); log.info("jbosstest.iterationcount: " + System.getProperty("jbosstest.iterationcount")); log.info("jbosstest.threadcount: " + System.getProperty("jbosstest.threadcount")); log.info("jbosstest.nodeploy: " + System.getProperty("jbosstest.nodeploy")); log.info("jbosstest.jndiurl: " + this.getJndiURL()); log.info("jbosstest.jndifactory: " + this.getJndiInitFactory()); }