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

Override javax.crypto.Cipher.toString()

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 12
    • Component/s: security-libs
    • Labels:
      None

      Description

       javax.crypto.Cipher.toString() currently doesn't print friendly information. Perhaps, it can be improved to include algorithm, mode and padding value data

      > jshell> import javax.crypto.*;
      >
      > jshell> Cipher cipher = Cipher.getInstance("AES");
      > cipher ==> javax.crypto.Cipher@5606c0b
      >
      > jshell> System.out.println(cipher);
      > javax.crypto.Cipher@5606c0b

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                coffeys Sean Coffey
                Reporter:
                coffeys Sean Coffey
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: