Override javax.crypto.Cipher.toString()

XMLWordPrintable

    • Type: CSR
    • Resolution: Approved
    • Priority: P4
    • 12
    • Component/s: security-libs
    • None
    • behavioral
    • minimal
    • No applications should be depending on the toString() output of a class
    • Java API
    • SE

      Summary

      Override javax.crypto.Cipher.toString() to provide a user friendly string describing the Cipher Problem

      Current output inherits Object.toString and is not too informative

      Solution

      Override toString() in Cipher class

      Specification

      /**
       * Returns a String representation of this Cipher.
       *
       * @implNote
       * This implementation returns a String containing the transformation,
       * mode, and provider of this Cipher.
       * The exact format of the String is unspecified and is subject to change.
       *
       * @return a String describing this Cipher
       */
      

            Assignee:
            Sean Coffey
            Reporter:
            Sean Coffey
            Sean Mullan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: