8313087: DerValue::toString should output a hex view of the values in byte array

Reviewed-by: mullan
This commit is contained in:
John Jiang 2023-07-26 15:16:52 +00:00
parent 74121930e3
commit 830413f19a

View file

@ -1133,7 +1133,8 @@ public class DerValue {
@Override
public String toString() {
return String.format("DerValue(%02x, %s, %d, %d)",
0xff & tag, buffer, start, end);
0xff & tag, HexFormat.of().withUpperCase().formatHex(buffer),
start, end);
}
/**