Skip to content

Commit

Permalink
Update edge-common-spring version and improve security provider addition
Browse files Browse the repository at this point in the history
The edge-common-spring version has been updated to 2.4.3 in the pom.xml. Also, a condition is added in EdgeDematicApplication to check if BouncyCastleFipsProvider is already a security provider before adding it.
  • Loading branch information
TarasSpashchenko committed May 20, 2024
1 parent 5f5a7bd commit 681caea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<openapi-generator.version>7.3.0</openapi-generator.version>
<mapstruct.version>1.5.3.Final</mapstruct.version>
<wiremock.version>3.4.2</wiremock.version>
<edge-common-spring.version>2.4.2</edge-common-spring.version>
<edge-common-spring.version>2.4.3</edge-common-spring.version>

<!--Plugin properties-->
<maven-clean-plugin.version>3.3.2</maven-clean-plugin.version>
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/org/folio/ed/EdgeDematicApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

import java.security.Security;

import static org.bouncycastle.jcajce.provider.BouncyCastleFipsProvider.PROVIDER_NAME;

@SpringBootApplication
@EnableAsync
@EnableFeignClients
Expand All @@ -22,7 +24,9 @@
HibernateJpaAutoConfiguration.class })
public class EdgeDematicApplication {
public static void main(String[] args) {
Security.addProvider(new BouncyCastleFipsProvider());
if (Security.getProvider(PROVIDER_NAME) == null) {
Security.addProvider(new BouncyCastleFipsProvider());
}
SpringApplication.run(EdgeDematicApplication.class, args);
}
}

0 comments on commit 681caea

Please sign in to comment.