• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Algorithm not find but listed in the available algorithm of the security provider

 
Dominique Righetto
Greenhorn
Posts: 12
Android Java Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm facing a strange issue...

During a test, i have listed the algorithms supported by all the security provider (SC) installed. There cases where a algorithm is listed as supported by a SC but when i try to get a instance of this to used it, the jvm throw a "NoSuchAlgorithmException"....

I didn't understand because the provider indicate that the algorithm is supported...

My environment informations are Java SE JDK 1.5.0_14 under Linux and Windows 2003 Server.

Thanks in advance for you light

Best regards,

Dom

 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post the code that shows that the algorithm exists but which is then unable to use it.
 
Dominique Righetto
Greenhorn
Posts: 12
Android Java Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the code that is used :
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The most likely reason is that the first parameter to Cipher.getInstance is not an algorithm, but a transformation. A transformation contains a mode and a padding in addition to the algorithm; some can do without either of those, but most can't. See http://download.oracle.com/javase/1.5.0/docs/guide/security/jce/JCERefGuide.html#AppA for more information.
 
Dominique Righetto
Greenhorn
Posts: 12
Android Java Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After some tests (in a web app. deployed under Tomcat) it seems that the problem occurs when i update the application with a new war....I think that i can be a JVM Security provider update problem....
All theses are hypothesis
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic