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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 6
    • Affects Version/s: 6
    • Component/s: 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.

            Assignee:
            Weijun Wang
            Reporter:
            Sean Mullan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: