You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we have to check, for each return path within provider methods, whether we have maintained consistency between the existence of the key and the existence of the key info stored in the manager. This applies to key generation, import and destruction.
My idea was that at the beginning of these methods we create (for generate/import) or retrieve (for destroy) the key mapping and feed it to a function that does the rest of the processing (all the param checks, calling the method from the interface underneath). The inner method then returns its Result, and based on that, before returning from the main provider method, we either keep or destroy the mapping.
The text was updated successfully, but these errors were encountered:
Currently we have to check, for each return path within provider methods, whether we have maintained consistency between the existence of the key and the existence of the key info stored in the manager. This applies to key generation, import and destruction.
My idea was that at the beginning of these methods we create (for generate/import) or retrieve (for destroy) the key mapping and feed it to a function that does the rest of the processing (all the param checks, calling the method from the interface underneath). The inner method then returns its
Result
, and based on that, before returning from the main provider method, we either keep or destroy the mapping.The text was updated successfully, but these errors were encountered: