Troubleshooting

Signature Algorithms

Q1:Why can't the JDK find the signature algorithm I asked for?
Make sure you are using a security provider that supports it. If you're using one of the ones mentioned in this chapter, the JDK should have built-in support already. Also make sure that you have the capitalization correct and that you put the digest algorithm first and not the encryption (SHA1withDSA, not DSAwithSHA1).
Q2:Why do I get an exception telling me that it can't find my key?
You might have forgotten to run keytool to create the key, or you might have entered the key alias incorrectly. Type keytool -list to see the keys in your key store.

Comparing Signatures

Q1:Why don't the signatures match up?
Either the file you're checking has been changed, ...

Get Special Edition Using Java™ 2 Enterprise Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.