Module io.inverno.mod.security.jose
Package io.inverno.mod.security.jose.jwk
Interface JWKURLResolver
public interface JWKURLResolver
A JWK URL resolver is used within JWKFactory
and JWKBuilder
to resolve JWK Set resources from JWK Set URL (i.e. jku
) or X.509 certificate from X.509 URLs (i.e. x5u
).
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionresolveJWKSetURL
(URI jku) Resolves a JSON JWK or JWK set at the specified location and returns corresponding keys represented as maps.Resolves the X.509 certificates chain at the specified location as defined by RFC7515 Section 4.1.5
-
Method Details
-
resolveJWKSetURL
Resolves a JSON JWK or JWK set at the specified location and returns corresponding keys represented as maps.
- Parameters:
jku
- the URI of the JSON JWK or JWK set resource- Returns:
- a publisher of parsed keys represented as maps
- Throws:
JWKResolveException
- if there was an error resolving the resource
-
resolveX509CertificateURL
Resolves the X.509 certificates chain at the specified location as defined by RFC7515 Section 4.1.5
- Parameters:
x5u
- the URI of the X.509 certificate chain- Returns:
- a single X.509 certificates chain publisher
- Throws:
JWKResolveException
- if there was an error resolving the certificates chain
-