public class RateLimitedJwkProvider extends java.lang.Object implements JwkProvider
| Constructor and Description |
|---|
RateLimitedJwkProvider(JwkProvider provider,
com.auth0.jwk.Bucket bucket)
Creates a new provider that will check the given Bucket if a jwks can be provided now.
|
| Modifier and Type | Method and Description |
|---|---|
Jwk |
get(java.lang.String keyId)
Returns a jwk using the kid value
|
public RateLimitedJwkProvider(JwkProvider provider, com.auth0.jwk.Bucket bucket)
bucket - bucket to limit the amount of jwk requested in a given amount of time.provider - provider to use to request jwk when the bucket allows it.public Jwk get(java.lang.String keyId) throws JwkException
JwkProviderget in interface JwkProviderkeyId - value of kid found in JWTSigningKeyNotFoundException - if no jwk can be found using the given kidJwkException