• 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

Location of Jar with com.ms.security

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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...

Cheers,

Richard
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Richard Davis
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think the only place you'll find any documentation for it would be the docs for Visual J++ which is years out of service.

Your best bet is to guestimate what it's supposed to do based on the method and class names it calls and try to find equivalent calls in current security systems.
 
Ernest Friedman-Hill
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check this out. It's a guide from Sun on upgrading from the MS JVM to the Sun JVM, and it includes some specific material on com.ms.security.
 
Richard Davis
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
reply
    Bookmark Topic Watch Topic
  • New Topic