RFR: 8256363: Define toString() for MGF1ParameterSpec [v2]

Weijun Wang weijun at openjdk.java.net
Mon Nov 16 20:52:03 UTC 2020


On Mon, 16 Nov 2020 18:37:13 GMT, Valerie Peng <valeriep at openjdk.org> wrote:

>> The current MGF part shows `MGF: MGF1:SHA-256`. An extra space would looks a little strange, and you don't know if the key is `MGF: MGF1` or `MGF`. I'd rather keep the current output.
>
> How about just MGF: MGF1SHA-256 or MGF: MGF1 SHA-256?
> First combines into a single string, the second uses space instead of ":". Just a suggestion.

I like the 2nd one better, but I'll see how Sean thinks about the verbose record-style toString.

-------------

PR: https://git.openjdk.java.net/jdk/pull/1208



More information about the security-dev mailing list