Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人知道 HttpsJwks 的使用是否是线程安全的吗?在我们将使用 HttpsJwks 的应用程序中,我们每秒收到大约 60 到 100 个调用,但在刷新 Jwks 时我没有看到任何锁定。
此外,HttpsJwksVerificationKeyResolver 如果找不到密钥,则直接调用刷新。
亲切的问候,肯尼斯
应该是的,是的。没有锁定,但唯一的共享数据是缓存对象,它是通过单个分配设置的。它经常在多线程情况下使用。