Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BC Provider in AS2 framework #151

Open
ihudedi opened this issue Jul 29, 2024 · 1 comment
Open

BC Provider in AS2 framework #151

ihudedi opened this issue Jul 29, 2024 · 1 comment
Assignees
Labels

Comments

@ihudedi
Copy link

ihudedi commented Jul 29, 2024

Hi @phax
I saw that you add manually provider org.bouncycastle.jce.provider.BouncyCastleProvider or org.bouncycastle.jcajce.provider.BouncyCastleFipsProvider in BCCryptoHelper class.
I have a question.
Is there an option to use the jca/jce provider via the provider list loaded in the java run time and not specfiying the providerName as
BC/BCFIPS
I wonder if we can use all encryption/sign using Sun Provider and not BC provider.
If we won't add the BC provider hard coded we can use the BC classes with default provider used by the jvm.ONly need to find the relevant provider from the provider list when application is running.

Thanks,
Itay

@phax phax self-assigned this Jul 29, 2024
@phax phax added the question label Jul 29, 2024
@phax
Copy link
Owner

phax commented Jul 29, 2024

@ihudedi the BouncyCastle providers are just set as defaults.
Via BCCryptoHelper.setSecurityProviderName(String) you can set a different security provider to use.
So ((BCCryptoHelper) AS2Helper.getCryptoHelper ()).setSecurityProviderName (...) should do the trick for you.

Please try this and let me know if it works for you. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants