I've been given the fun task of taking a fairly large and badly-coded java/jsp application and shoe-horning it into WSAD, fixing lots of bugs, deprecated code and other issues on the way. Mostly I'm doing alright, despite limited java experience, but one particular class makes much reference to the com.ms.security.* package.
Looking around on the web it seems that this package is generally defunct, not supported by anyone and not available for use any more. What I can't find anywhere is any information on a) whether it is possible to get hold of a jar that contains this, albeit unsupported, so that I can at least get the code runnning, and b) if I can't get hold of the jar what I can use instead.
Any information/help would be gratefully received, as I'm doing my nut...
Well, it wouldn't have been in a jar, but in a .zip or more likely a CAB file. Microsoft's JVM predated the "jar" concept, and MS supplied their classes in their standard CAB archive format.
It's extremely likely that com.ms.security relied on native code that would be impossible to run under a non-MS JVM, because MS's JVM had its own native-code mechanism, not compatible with either the JNI or the original JDK 1.0 native code interface.
I think your two most realistic options are 1, to completely rewrite the class to use the newer Java security machinery, or 2, to write or find a wrapper for the new Java security APIs which uses the com.ms.security interface and try to use that. Personally I'd bite the bullet and do the former.
Cheers for the quick reply. Only problem with re-writing the code is that I don't really have a clue what it was attempting to do! The concept of documentation seems to have been a foreign one to whoever wrote the code that I'm working on, and I haven't been able to find any javadocs (or similar) for the com.ms.security utilities.
Cheers for that - I'll check it out and see if I can update the code. Incidentally, I did eventually find the relevant packages in C:\winnt\java\packages\<something random>.zip, so that I could at least get the stuff to run!