java - Using Sun JCE provider on top of IBM SDK -


I have to use Sun JCE Provider in an application that runs on the IRB webserfare. This can be achieved by specifying security_provider.1 = com.sun.crypto.provider.SunJCE. Some parts of my application use IBM's SSL features. I

I want to know that the SunJCE provider Configuring affects other uses of the JSAE provider in my application.

I want to ask that the second question is, is there any way to continue using IBM JDK defaults (JCE and LTSJSE and others) and use only Sun JCE wherever needed. I mean that I will configure the Sun JCE provider as a previous security_provider.10. And in the code base where I need to use Sun JCE provider, I will clearly provide the provider name in my crypto related classes. Pre cipher sip = cipher For Gate Instance ("DES", "Sun") ..

Please tell me what is the best way.

To specify a security provider, you should do what you said:

  cipher sip = cipher Gate Instance ("DES", "Sun")  

But Sun is named "SunJCE", IBM is "IBMCeE", you can also use third-party providers as Bayerci Castell You can. You should take care of the "provider knotfond" exception.

This sun will use the implementation:

  cipher cip = cipher .get instance ("DES", "sunseye")  

This will use the IBM implementation:

  cipher cip = cipher .get instance ("DES", "IBSEE")  

If you use IBM SDK Using, it will do the same:

  cipher cip = cipher By the way, if you install (security edits) SDK files), as the last provider, the Sun is the provider, which in any way affects your application. Because when you search for an algorithm, the JCE API will look for the first provider examples, then for the second, and so on (when this algorithm is found, it stops). 


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -