// Specify the login conf file location
String authConf = super.getResourceURL("security/auth.conf");
getLog().debug("Using auth.conf: "+authConf);
System.setProperty("java.security.auth.login.config", authConf);
AppCallbackHandler handler = new AppCallbackHandler("admin", "admin".toCharArray());
LoginContext lc = new LoginContext("testSecureHttpInvoker", handler);
lc.login();
// Test the secured JNDI factory
env.setProperty(Context.PROVIDER_URL, INVOKER_BASE + "restricted/JNDIFactory");