On Tue, 13 May 2025 13:07:18 GMT, Weijun Wang <wei...@openjdk.org> wrote:

>> It seems like it should be an exception, whatever you decide to do. The 
>> caller is asking for the keying material data, and the provider cannot 
>> fulfill that request, so I think explaining why it could not be done would 
>> be best represented in an exception.
>
> +1 for UOE. It's not that we got a key and found it un-extractable. It's that 
> we asked for data but were refused.

I have updated to return a `UOE`.  

I'm a little concerned that `UOE` will be returned for both a non-overriden 
`exportKeyingMaterial*` method, and if there is a problem with the derivation.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24976#discussion_r2093696922

Reply via email to