The Artima Developer Community
Sponsored Link

Legacy Design Forum
Designing with Dynamic Extension

Advertisement

Advertisement

This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Custom decryption class loader

Posted by Soumya Dutta on April 14, 2001 at 7:00 AM

Hi all,

I have to create a custom class-loader to decrypt and load classes from an encrypted jar file (which has class files encrypted in some manner).

Can anybody help me through this? I am not able to appreciate the difference between defineClass() and loadClass() methods of the java.lang.ClassLoader abstract class.

Besides, how can I create instances of the encrypted classes, once i have the byte array containing the byte-codes of the classes?

Would be very grateful for any help. Thanks in advance,
- Dutta.



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us