Reg error at the time of grant consent from PHR App - bountycastle provider issue

Hi ,

@IntegrationSupport

Hi we are facing the below issue on granting the consent from PHR app on encrypting the data. Can you please help us fixing this issue.

java.lang.SecurityException: class “org.bouncycastle.jcajce.provider.asymmetric.DSTU4145$Mappings”'s signer information does not match signer information of other classes in the same package
at java.base/java.lang.ClassLoader.checkCerts(ClassLoader.java:1151)
at java.base/java.lang.ClassLoader.preDefineClass(ClassLoader.java:906)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1015)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2472)
at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:875)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1376)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1220)
at org.bouncycastle.jcajce.provider.symmetric.util.ClassUtil.loadClass(Unknown Source)
at org.bouncycastle.jce.provider.BouncyCastleProvider.loadAlgorithms(Unknown Source)
at org.bouncycastle.jce.provider.BouncyCastleProvider.setup(Unknown Source)
at org.bouncycastle.jce.provider.BouncyCastleProvider.access$000(Unknown Source)
at org.bouncycastle.jce.provider.BouncyCastleProvider$1.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.bouncycastle.jce.provider.BouncyCastleProvider.(Unknown Source)
at com.emanas.middleware.abdm.dataSecurity.KeysGenerator.generateKeyPair(KeysGenerator.java:27)
at com.emanas.middleware.abdm.dataSecurity.KeysGenerator.generate(KeysGenerator.java:16)
at com.emanas.middleware.abdm.abdmCallback.HiuCallbackService.requestHealthInformation(HiuCallbackService.java:67)

Thanks,
Ramya B