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

Override javax.crypto.Cipher.toString()

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P4
    • Resolution: Approved
    • Fix Version/s: 12
    • Component/s: security-libs
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      No applications should be depending on the toString() output of a class
    • Interface Kind:
      Java API
    • Scope:
      SE

      Description

      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
       */

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: