JDK-8287156 : Replace all OID strings with KnownOIDs constants
  • Type: Bug
  • Component: security-libs
  • Affected Version: 7-pool,8-pool,11-pool
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2022-05-23
  • Updated: 2022-11-22
Related Reports
Relates :  
Description
As a part of backport of JDK-8242151 we have introuced KnownOIDs.java file holding all OIDs constant for re-use.
Repace all manual OID string entries with the constant in KnownOID, which might have been left out after JDK-8242151.

The following grep gives out full result where string replacement is necessary:

grep -r "\"[1-2].*\.[0-9].*\.[0-9].*" java.base/ 
grep -r "\"[1-2].*\.[0-9].*\.[0-9].*" j*secu*
grep -r "\"[1-2].*\.[0-9].*\.[0-9].*" *mscap*