• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Websphere 5 migration Security Context question

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am migrating a Custom registry implementation from WAs 4.0 to User registry implementation for WAS 5.0.
In the 4.0 application source, we have these lines...
/**
* This method returns true if J2EE Authentication is enabled.
* @return True indicates enabled, false indicates disabled
*/
public static boolean isJ2EEAuthEnabled()
{
// boolean retVal = SecurityContext.isSecurityEnabled();
// LOG.debug("SecurityContext.isSecurityEnabled()=" + retVal);
// return retVal;
return false;
}

the code thats commented out since it doesn't compile in WAS 5.0.
What is the equivalent of this in WAS for me to check whether the security is enabled?
Any source code example would be really appreciated.
Thanks a lot.
Yogi
 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Yogi,
Download IBM's FormLoginSample; the HomeController.java does what you're looking for.

Hope this helps!
--Dave.
 
reply
    Bookmark Topic Watch Topic
  • New Topic