Table of Contents

Interface IKeyMaterialService

Namespace
Fdyay.IdentityServer.Services.KeyManagement
Assembly
Fdyay.IdentityServer.Core.dll

Provides signing credentials and validation keys to the token pipeline and JWKS.

public interface IKeyMaterialService

Methods

GetAllSigningCredentialsAsync(CancellationToken)

Gets all signing credentials currently in use.

Task<IEnumerable<SigningCredentials>> GetAllSigningCredentialsAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<IEnumerable<SigningCredentials>>

GetSigningCredentialsAsync(IEnumerable<string>?, CancellationToken)

Gets the signing credentials, optionally constrained to a set of algorithms.

Task<SigningCredentials> GetSigningCredentialsAsync(IEnumerable<string>? allowedAlgorithms = null, CancellationToken cancellationToken = default)

Parameters

allowedAlgorithms IEnumerable<string>
cancellationToken CancellationToken

Returns

Task<SigningCredentials>

GetValidationKeysAsync(CancellationToken)

Gets the public validation keys published in the JWKS.

Task<IEnumerable<SecurityKeyInfo>> GetValidationKeysAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<IEnumerable<SecurityKeyInfo>>