File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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?
I agree. Here's the link:
subject: JCE Provider for "DES/CBC/NoPadding"
It's not a secret anymore!