RFR: 8225181: KeyStore should have a getAttributes method

Sean Mullan mullan at openjdk.java.net
Thu Oct 28 13:54:16 UTC 2021


On Wed, 27 Oct 2021 20:10:57 GMT, Weijun Wang <weijun at openjdk.org> 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



More information about the security-dev mailing list