Reputation: 830
Trying to enable password encryption in WebSphere following these procedures and I don't think I'm quite following what to do:
1. Plug point for custom password encryption
2. Enabling a plugpoint for custom password encryption
My questions are:
true
?Upvotes: 1
Views: 1533
Reputation: 356
To answer your questions...
All link 2 step 2 is telling you is that you need to place your implemented class into a JAR file and put it in the proper location (on the classpath). How you package/manage that file (as a project or not) is up to you.
You don't copy the provided interface, you implement the interface within your own custom object (implements CustomPasswordEncryption). It's already part of WebSphere. If you have the right JAR files referenced in your Project, the compiler/ide/etc will find it.
Yes, you set this JVM property (via java -D) to point at your implementation of the interface. Though I would highly recommend you put the implementation in your own java package, not theirs. So something like com.whatever.CustomPasswordEncryptionImpl.
Yes
I've not tried that, but it looks like naming it as such avoids the need to set the JVM properties. So they're just offering it up as an option. I still think I'd prefer it in my own package space though.
You are responsible for updating those, as WebSphere won't update them unless you're actively changing them.
One thing to be aware of as well... If the plugin you implement ever fails, WebSphere will default to using XOR. You'll see an entry in the logs, but would get no indication anywhere else. So make sure you keep that in mind.
Upvotes: 1