Is JWKSet thread safe?

Issue #256 resolved
Former user created an issue

Is JWKSet thread safe? From my initial look at the code, it looks like it is but I don't see the @ThreadSafe annotation. If it is, can @ThreadSafe be added?

Comments (3)

  1. Vladimir Dzhuvinov

    JWKSet is thread safe, if you don't try to modify the underlying LinkedList via the getKeys() method.

    I'll consider making the list immutable. The @ThreadSafe annotation can then be put.

  2. Log in to comment