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
cancellationTokenCancellationToken
Returns
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
allowedAlgorithmsIEnumerable<string>cancellationTokenCancellationToken
Returns
GetValidationKeysAsync(CancellationToken)
Gets the public validation keys published in the JWKS.
Task<IEnumerable<SecurityKeyInfo>> GetValidationKeysAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken