JavaRanch Home
 
Front Page FAQs Ranchers Categories Recent Changes To Do Upload

Security Faq   



This is work in progress. Right now it's just a list of topics that should be covered eventually. Fell free to add content as you see fit.

General remarks

  • While any of the following may help solve security-related problems, keep in mind that security is a process, not a single product or technology. A technologically secure computer system does not help if someone can steal its hard drive, it's not backed up properly, or if its password is written on a Post-It note.

  • comp.risks is a newsgroup and mailing list where all matters related to computer security are discussed by highly knowledgeable practitioners of the field.



Applet security



Security managers and class loaders



Policies



Web applications and HTTP



JAAS



JCE - Encryption - Message Digests

Q: Using JCE I am getting a BadPaddingException. What should I do?

A: You should read this thread. The gist is: don't use a String to store the encrypted text - use byte[].

Q: Where can I get Java source code for the XYZ algorithm?

A: Bouncycastle is an open source library comprised of many and varied encryption algorithms, amongst them a full JCE implementation. The codes for the AES competition are also available. Those include Rijndael (which became AES), RC6, Serpent, Twofish and Mars.

Q: I am getting an java.lang.SecurityException: Unsupported keysize or algorithm parameters. What gives?

A: One reason may be that you're using incorrect parameters for the algorithm, mode or cipher. Check the above-mentioned list of algorithms for what is available. Another reason may be that you don't have the unlimited jurisdiction policy files installed; these can be downloaded from the same place you download the J2SE JDK.

Q: How can I implement my own JCE provider?

A: This is described in detail in the article How To Implement a Provider for the Java Cryptography Architecture. Information on how to install the provider can be found in the sections on "How Provider Implementations Are Requested and Supplied" and "Installing Providers" in this article.



Web service security

  • This article is part of the Axis documentation, but it's generally applicable.


Other topics



CategoryFaq
Front Page FAQs Ranchers Categories Recent Changes To Do Upload
Last Edited: 04 July 2008 What's Changed?
 
Copyright © 1998-2008 Paul Wheaton | Home | Contact Us | Privacy | Register