Load algorithm parameters from PEM encoded 'EC PRIVATE KEY' files

Update `PrivateKeyParser` implementations so that algorithm parameters
for PEM encoded 'EC PRIVATE KEY' files are loaded from the incoming
data.

Prior to this commit, the algorithm parameter was hard-coded to
'secp384r1' which could result in a mismatch to the actual file
content.

Fixes gh-34232
This commit is contained in:
Phillip Webb
2023-08-31 19:24:43 -07:00
parent 80cb21e800
commit fd8cb74b46
8 changed files with 315 additions and 14 deletions

View File

@@ -93,6 +93,7 @@
</subpackage>
<subpackage name="server">
<disallow pkg="org.springframework.context" />
<allow pkg="org.springframework.boot.web.server"/>
<subpackage name="context">
<allow pkg="org.springframework.context" />
</subpackage>