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

Case sensitivity issues in the Provider class

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 5.0
    • security-libs
    • beta
    • generic
    • generic

        The changes to the Provider class in Tiger caused an unintended change in behavior. It used to be that

            put("MessageDigest.MD2", "com.foo...");
            put("messagedigest.MD5", "com.foo...");
            put("MESSAGEDIGEST.SHA", "com.foo...");

        all worked. Now the parsing code is case sensitive and only "MessageDigest" works (similarly for other engine types). Although the documentation is unclear about case sensitivity in this case, the previous behavior needs to be restored for compatibility.

        In addition, the new code in the Provider.Service class treats attributes as case sensitive, even though our documentation explicitly defines them to be case insensitive (see http://java.sun.com/j2se/1.5.0/docs/guide/security/CryptoSpec.html#AppA under "Service Attributes"). This should be corrected as well.

              andreas Andreas Sterbenz
              andreas Andreas Sterbenz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: