This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "JCE Provider for "DES/CBC/NoPadding"" Watch "JCE Provider for "DES/CBC/NoPadding"" New topic

JCE Provider for "DES/CBC/NoPadding"

Paul Stanton

Joined: May 09, 2004
Posts: 3
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

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.

Paul Stanton

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"