On Wed, 27 Oct 2021 20:10:57 GMT, Weijun Wang <[email protected]> wrote:
>> Yes, a sentence like that would help. Some suggested tweaks: "For a
>> PrivateKeyEntry or SecretKeyEntry, some attributes may be protected and not
>> available unless the entry is first extracted by the getEntry() method."
>>
>> I don't think you need the last sentence.
>
> I wonder if someone will interpret this as "after I've called `getEntry` on a
> private key, I can get the encrypted attributes through
> `KeyStore::getAttributes`". How about something like "and only available
> through the {@link KeyEntry.getAttributres} method after the entry is
> extracted"?
Ok.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6026