ResourceKeysProvider Class
Resolves a protected resource's encryption keys from its registration, inline or at its JWKS URI.
public class ResourceKeysProvider : Abblix.Oidc.Server.Features.ResourceIndicators.IResourceKeysProviderInheritance System.Object → ResourceKeysProvider
Implements IResourceKeysProvider
Constructors
ResourceKeysProvider(ILogger<ResourceKeysProvider>, IServiceProvider) Constructor
Resolves a protected resource's encryption keys from its registration, inline or at its JWKS URI.
public ResourceKeysProvider(Microsoft.Extensions.Logging.ILogger<Abblix.Oidc.Server.Features.ResourceIndicators.ResourceKeysProvider> logger, System.IServiceProvider serviceProvider);Parameters
logger Microsoft.Extensions.Logging.ILogger<ResourceKeysProvider>
Logger for capturing fetch operations and errors.
serviceProvider System.IServiceProvider
Used to resolve the scoped ISecureHttpFetcher per fetch.
Methods
ResourceKeysProvider.GetEncryptionKeys(ResourceDefinition) Method
Retrieves the encryption keys published by the given resource.
public System.Collections.Generic.IAsyncEnumerable<Abblix.Jwt.JsonWebKey> GetEncryptionKeys(Abblix.Oidc.Server.Common.Constants.ResourceDefinition definition);Parameters
definition ResourceDefinition
The registered definition of the resource.
Implements GetEncryptionKeys(ResourceDefinition)
Returns
System.Collections.Generic.IAsyncEnumerable<JsonWebKey>
The resource's encryption keys, empty when it publishes none, which is how a resource says it
accepts a signed JWS.