Class JWKSourceWithFailover<C extends SecurityContext>

java.lang.Object
com.nimbusds.jose.jwk.source.JWKSourceWithFailover<C>
All Implemented Interfaces:
JWKSource<C>, Closeable, AutoCloseable

@ThreadSafe public class JWKSourceWithFailover<C extends SecurityContext> extends Object implements JWKSource<C>, Closeable
JWK source with optional failover.
Version:
2022-08-24
Author:
Thomas Rørvik Skjølberg, Vladimir Dzhuvinov
  • Constructor Details

    • JWKSourceWithFailover

      public JWKSourceWithFailover(JWKSource<C> jwkSource, JWKSource<C> failoverJWKSource)
      Creates a new JWK source with optional failover.
      Parameters:
      jwkSource - The primary JWK source. Must not be null.
      failoverJWKSource - Optional failover JWK source if retrieval from the primary JWK source fails, null if no failover.
  • Method Details