Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
themeEclipse
private Session login() {
   String website = myConfigService.getParameter(WEBSITEKEY);
   Session session = mySessionManager.createSession(website, "username");
   return session;
}
// Login using the authorization service
   if (!myAuthorizationService.login(username, password, request)) {
      LOG.warning("Login failed.");
	  return null;
	  }
	  return session;
      } catch(ConfigurationManagementException e) {
         LOG.log(Level.SEVERE, "An exception occurred during login()", e);
         return null;
      }
}


Back to Top