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

AlgorithmParameters[Spi].getEncoded should state that it returns clone

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 6
    • security-libs
    • None
    • beta
    • generic
    • solaris_9


      ###@###.### 2003-09-04

      AlgorithmParameters.getEncoded() and AlgorithmParametersSpi.engineGetEncoded() should state
      that it returns a new clone/copy of the encoded byte array each time the method is invoked.
      It currently says nothing, which is underspecified.
      This is good practice, something the application programmer and provider developer should
      be aware of, and reflects the behavior of our current DSAParameters implementation.

            weijun Weijun Wang
            mullan Sean Mullan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: