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

Override javax.crypto.Cipher.toString()

    XMLWordPrintable

Details

    • CSR
    • Resolution: Approved
    • P4
    • 12
    • security-libs
    • None
    • behavioral
    • minimal
    • No applications should be depending on the toString() output of a class
    • Java API
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: