How to prove the security for a class file in war with out effecting the functionality?

We wanted to provide the security for the class file in the war file, beuase if you share the war file to customer he can open and see our code by using some de-compiler available in the market. So i want to restrict that, how can i encrypt that class or any some other way to avoid that lap. And that new war(After enabling the security), it should be executed by the web/application server.

Kindly help me.
Who is Participating?
Mahesh BhutkarConnect With a Mentor Commented:
You can obfuscate your classes. There are various tools available.

Have a look at IzPack

and obfuscators

yguard is ok

klassmaster will give you better protection
prabhuallaAuthor Commented:
Thanks for the solution.
All Courses

From novice to tech pro — start learning today.