• Andy Wilkinson's avatar
    Work around https://bugs.openjdk.java.net/browse/JDK-8156584 · 912c82e5
    Andy Wilkinson authored
    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
    912c82e5
Name
Last commit
Last update
.github Loading commit data...
buildSrc Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
git/hooks Loading commit data...
gradle/wrapper Loading commit data...
idea Loading commit data...
spring-boot-project Loading commit data...
spring-boot-tests Loading commit data...
src Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
SUPPORT.adoc Loading commit data...
build.gradle Loading commit data...
gradle.properties Loading commit data...
gradlew Loading commit data...
gradlew.bat Loading commit data...
settings.gradle Loading commit data...