RFR: 8256363: Define toString() for MGF1ParameterSpec [v2]
Sean Mullan
mullan at openjdk.java.net
Mon Nov 16 22:07:16 UTC 2020
On Mon, 16 Nov 2020 20:49:15 GMT, Weijun Wang <weijun at openjdk.org> wrote:
>> 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.
99% of the time, it will probably be one of the MGF1ParameterSpec constants. For those, perhaps it would be nice to just use the constant: "MGF: MGF1ParameterSpec.SHA1" and for anything else, "MGF: MGF1ParameterSpec [digestAlgorithm: ...>". If this is too complicated, then I am ok with the above.
-------------
PR: https://git.openjdk.java.net/jdk/pull/1208
More information about the security-dev
mailing list