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

(spec) missing IllegalStateException exception requirement for javax.crypto.Cipher.doFinal

    Details

    • Subcomponent:
    • Understanding:
      Cause Known
    • CPU:
      sparc
    • OS:
      solaris_2.6

      Description

      Name: iiR10263 Date: 12/05/2003



      The following methods of javax.crypto.Cipher:
      update(...), doFnal(...), wrap(...) and unwrap(...) throw
      IllegalStateException "if this cipher is in a wrong state (e.g., has
      not been initialized)". It is reasonable to require this exception to
      be thrown when Cipher object is initialized for another operation. For
      example doFinal() should throw IllegalStateException if the Cipher was
      initialized for key wrapping.


      ======================================================================

        Attachments

          Activity

            People

            • Assignee:
              wetmore Bradford Wetmore
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: