This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Security and the fly likes JCE Provider for Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "JCE Provider for "DES/CBC/NoPadding"" Watch "JCE Provider for "DES/CBC/NoPadding"" New topic
Author

JCE Provider for "DES/CBC/NoPadding"

Paul Stanton
Greenhorn

Joined: May 09, 2004
Posts: 3
Hi,
How do I implement a provider for "DES/CBC/NoPadding". i'm trying to use jaas to authenticate with an Active Directory server through jndi.

the codegives the following output

Thanks.
Patricia Fulk
Ranch Hand

Joined: Sep 10, 2001
Posts: 62
Hi Paul,

What it is telling you is that the provider that you are trying to use is not installed. In other words it can not find the DES provider. I am not sure how you installed JCE, but to find out if you have the provider look for the sunjce_provider.jar. This jar file should contain the DESCipher class file. Now, if you installed the JCE as an add on you will need to make sure that you have made the JCE accessible in the java.policy file.

I hope this helps.

Trish
Paul Stanton
Greenhorn

Joined: May 09, 2004
Posts: 3
The libraries are all loaded. this can be proved:

This DOES NOT throw a NoClassDefFoundException, therefore the class exists on the classpath and is loaded correctly. However it does throw a nullpointer:

Is this expected? or could this be the cause of my original error?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JCE Provider for "DES/CBC/NoPadding"
 
Similar Threads
Jdk14 Cipher Providers Exceptions
Bouncy Castle vs. Sun's JCE
Please send me one example of Encryption/Decryption
java.security.NoSuchProviderException: no such provider: ABA
crytography