Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8249783

Simplify DerValue and DerInputStream

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 16
    • Component/s: security-libs
    • Labels:
      None

      Description

      Goals:

      1. DerValue be mostly immutable and used to read primitive values
      2. DerInputStream be used to read constructed values
      3. DerValue can be mutable for compatibility, but these calls are avoidable.
      4. The major function of DerInputStream is itererating through sub-values. Except for getDerValue(), all other getXyz() calls should only be a wrapper of getDerValue().getXyz() and thus avoidable.
      5. No more DerInputBuffer.

      Success Metric:

      1. Except for extreme cases (Ex: DerInputBuffer was called), all existing code should behave the same.
      2. A new calling style that is simple, safe, and efficient.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              weijun Weijun Wang
              Reporter:
              weijun Weijun Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: