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