This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JCE Provider for "DES/CBC/NoPadding"  RSS feed

 
Paul Stanton
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!