Skip to content

Commit

Permalink
fix: : java.lang.IllegalArgumentException: missing provider
Browse files Browse the repository at this point in the history
  • Loading branch information
AssahBismarkabah committed Jul 29, 2024
1 parent f5e2b35 commit 2375d5c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package de.adorsys.datasafe.encrypiton.impl.utils;

import de.adorsys.keymanagement.adapter.modules.generator.GeneratorModule_ProviderFactory;
import lombok.experimental.UtilityClass;
import org.bouncycastle.jce.provider.BouncyCastleProvider;

Expand All @@ -9,5 +10,5 @@
@UtilityClass
public class ProviderUtils {

public static final Provider bcProvider = Security.getProvider(BouncyCastleProvider.PROVIDER_NAME);
public static final Provider bcProvider = GeneratorModule_ProviderFactory.provider();
}
7 changes: 7 additions & 0 deletions datasafe-encryption/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,11 @@
<module>datasafe-encryption-api</module>
<module>datasafe-encryption-impl</module>
</modules>
<dependencies>
<dependency>
<groupId>de.adorsys.keymanagement</groupId>
<artifactId>bouncycastle-adapter</artifactId>
<version>0.0.11</version>
</dependency>
</dependencies>
</project>

0 comments on commit 2375d5c

Please sign in to comment.