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
Ensure thread safety by avoiding shared Cipher instances
Cipher instances are not thread-safe. Injecting them as shared beans and storing them as class fields may lead to concurrency issues in a multi-threaded environment.
Recommend obtaining new Cipher instances within each method call or configuring the Cipher beans with prototype scope to provide a new instance per injection.
Ensure thread safety by avoiding shared
Cipher
instancesCipher
instances are not thread-safe. Injecting them as shared beans and storing them as class fields may lead to concurrency issues in a multi-threaded environment.Recommend obtaining new
Cipher
instances within each method call or configuring theCipher
beans with prototype scope to provide a new instance per injection.Also applies to: 31-37
Originally posted by @coderabbitai[bot] in #635 (comment)
The text was updated successfully, but these errors were encountered: