public class UrlJwkProvider extends java.lang.Object implements JwkProvider
URL
Constructor and Description |
---|
UrlJwkProvider(java.lang.String domain)
Creates a provider that loads from the given domain's well-known directory.
|
UrlJwkProvider(java.net.URL url)
Creates a provider that loads from the given URL
|
UrlJwkProvider(java.net.URL url,
java.lang.Integer connectTimeout,
java.lang.Integer readTimeout)
Creates a provider that loads from the given URL
|
Modifier and Type | Method and Description |
---|---|
Jwk |
get(java.lang.String keyId)
Returns a jwk using the kid value
|
java.util.List<Jwk> |
getAll() |
public UrlJwkProvider(java.net.URL url)
url
- to load the jwkspublic UrlJwkProvider(java.net.URL url, java.lang.Integer connectTimeout, java.lang.Integer readTimeout)
url
- to load the jwksconnectTimeout
- connection timeout in milliseconds (null for default)readTimeout
- read timeout in milliseconds (null for default)public UrlJwkProvider(java.lang.String domain)
UrlJwkProvider(URL)
if you need to pass a full URL.domain
- where jwks is publishedpublic java.util.List<Jwk> getAll() throws SigningKeyNotFoundException
SigningKeyNotFoundException
public Jwk get(java.lang.String keyId) throws JwkException
JwkProvider
get
in interface JwkProvider
keyId
- value of kid found in JWTSigningKeyNotFoundException
- if no jwk can be found using the given kidJwkException