-
Bug
-
Resolution: Fixed
-
P5
-
6, 6u10
-
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.
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.
- duplicates
-
JDK-7013873 klist.exe does not return correct key
-
- Closed
-