spring-boot/buildSrc
Andy Wilkinson 912c82e50d Work around https://bugs.openjdk.java.net/browse/JDK-8156584
sun.security.x509.AlgorithmId.get(String) isn't thread-safe and can
lead to null be returned for an algorithm that should be present.

This commit aims to work around this problem by avoiding the call
to AlgorithmId.get(String). It does so by configuring the
PKCS12 key protection algorithm to one that starts with
pbewithhmacsha (case insensitive). This short-circuits the logic
in PKCS12KeyStore.mapPBEAlgorithmToOID(String) and avoids the call to
AlgorithmId.get(String). Thanks again to @dreis2211 for the
suggestion.

The work around is only used when building with Java 8 as the problem
was fixed in Java 9.

Closes gh-26252
2021-04-27 17:27:28 +01:00
..
src Work around https://bugs.openjdk.java.net/browse/JDK-8156584 2021-04-27 17:27:28 +01:00
build.gradle Configure Kotlin compilation to use 1.3 apiVersion and languageVersion 2021-04-07 11:43:39 +01:00
gradle.properties Merge branch '2.2.x' into 2.3.x 2020-12-04 18:21:57 -08:00
settings.gradle Adopt Gradle Enterprise Conventions Plugin 2020-02-04 11:24:40 +00:00