KeyTabEntry, when the byte value smaller then 16, the string drop '0'.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • 7
    • Affects Version/s: 6, 6u10
    • Component/s: security-libs
    • b81
    • x86
    • windows_xp, windows_7

      FULL PRODUCT VERSION :


      A DESCRIPTION OF THE PROBLEM :
      sun.security.krb5.internal.ktab.KeyTabEntry
       
      public String getKeyString() {
        StringBuffer sb = new StringBuffer("0x");
        for (int i = 0; i < keyblock.length; i++) {
         sb.append(Integer.toHexString(keyblock[i] & 0xff));
        }
        return sb.toString();
       }
       
      when the byte value smaller then 16, the string drop '0'.


      REPRODUCIBILITY :
      This bug can be reproduced always.

            Assignee:
            Weijun Wang
            Reporter:
            Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: