SubjectDnX509PrincipalExtractor should update to getSubjectX500Principal #16980
Labels
in: web
An issue in web modules (web, webmvc)
status: duplicate
A duplicate of another issue
type: enhancement
A general enhancement
Milestone
Recent versions of Java state that
getSubjectDn
should no longer be used:However, since
getSubjectDn
is abstract, applications may be relying on provider implementations. For example, Bouncycastle returns anorg.bouncycastle.jce.X509Principal
instance forgetSubjectDn
and ajavax.security.auth.x500.X500Principal
forgetSubjectX500Principal
.For this reason, we should add a toggle for this value, something like:
This default would change to
true
in Spring Security 8.The text was updated successfully, but these errors were encountered: